netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sendmsg, descriptors and no content
@ 2006-10-31 22:01 netdev
  2006-10-31 22:43 ` bert hubert
  0 siblings, 1 reply; 2+ messages in thread
From: netdev @ 2006-10-31 22:01 UTC (permalink / raw)
  To: netdev

Hi,


When I use sendmsg to send descriptors from one process to another using
unix-sockets I need to include at least one byte of normal data for the
descriptors to be send (using the iovec structure). The same code worked
fine on openbsd (ie. filedescriptors could be send without normal data).
If no normal data is included sendmsg will return 0, as if all data is
send correctly.


Is this difference on purpose? If so, why?


Regards,
Hylke


ps.
The current behaviour is because unix_stream_sendmsg in af_unix.c will
not do anything if len=0.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-31 22:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-31 22:01 sendmsg, descriptors and no content netdev
2006-10-31 22:43 ` bert hubert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).