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.

   Simon

-- 
PGP public key available from http://phobos.fs.tum.de/pgp/Simon.Richter.asc
 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 [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to