bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's missing/wrong in these test programs?


From: Samuel Thibault
Subject: Re: What's missing/wrong in these test programs?
Date: Thu, 9 Apr 2015 01:13:13 +0200
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]