Svante Signell, le Wed 08 Apr 2015 21:56:36 +0200, a écrit : > New try, now with sendmsg/recvmsg.
Ah, I hadn't read your source code when answering on IRC. > How to send the rendzevous port: as real data or ancillary data? None of those two: real data wouldn't actually transfer the port, and as anciliary data, it would need to be an FD, which it isn't. What you want to do is not use the posix layer (send/sendmsg), but the underlying hurdish interface (which is what you'll want to use for running proc_identify for flock and SCM_CRED anyway), i.e. socket_send and socket_receive on the underlying port behind the socket FD. Those function will take and give the rendez-vous port properly (i.e. not just the port name value, but the real port transferred from one process to another, with most probably a different port name value in the target process). Samuel