Re: Question about I_SENDFD

From: Simon Richter (
Date: Thu Sep 07 2000 - 05:07:07 EST

On Thu, 7 Sep 2000, Andrey G. Kaplanov wrote:

> For instance, following command writes transDsc descriptor to the
> stream streamDsc.
> int ret = ioctl(streamDsc, I_SENDFD, transDsc);

> On Red Hat Linux kernel 2.2.16 ret is -1, errno is 22 - Invalid argument.

Implementing this ioctl for Linux should be trivial as...

> That is here done not so, or be other ways of transmission of file
> descriptor between processes?

... Unix sockets allow passing of fds as ancilliary data. See the
unix(7) manpage for details.


PGP public key available from
 Fingerprint: 10 62 F6 F5 C0 5D 9E D8  47 05 1B 8A 22 E5 4E C1
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to Please read the FAQ at

This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 21:00:29 EST