How to transfer file descriptors with UNIX domain sockets?

Rob Menke rgm at lightning.Berkeley.EDU
Thu Jun 28 18:23:05 AEST 1990


I have seen references in various IPC tutorials and manuals that it is
possible to transfer file descriptors between processes via UNIX domain
sockets using sendmsg(2) and recvmsg(2).  Unfortunately, none of these
documents contain anything more than a tantalizing aside.

I'm hoping that someone out there might be able to provide a detailed
description of how this is done, or better yet, some clear code that could be
used as an example.

Please e-mail as I will be going on vacation shortly and our news server will
cheerfully overwrite any posted replies.

							Thanks.

>GIVE COIN TO CHARON			|  Wabewalker
"So educated," giggles the voice in	|    rgm at OCF.berkeley.edu
your ear...				|    Robert.Menke at bmug.fidonet.org



More information about the Comp.unix.questions mailing list