Passing open file descriptors

Passing open file descriptors

Post by Ian Jacks » Tue, 13 Dec 1994 10:31:59

>[...] does anyone know how one can pass open file descriptors from one process
>to another under Linux?

Use /proc/*/fd/* - you can pass the pid and filedescriptor number as
text, and have the other process simply open the descriptor.  This
assumes that both processes are running as the same user.

This appears to work for network sockets and named pipes as well as
for files, under 1.1.69.

I wouldn't wait for the streams stuff, it could be a while coming.

PS: You're posting to the wrong newsgroup - followups redirected to

+44 1223 575512    Escoerea on IRC.