Sharing file descriptors across processes

Erno Kuusela erno-news at erno.iki.fi
Wed Sep 5 13:45:13 EDT 2001


In article <mailman.999705607.1164.python-list at python.org>,
<dave at pythonapocrypha.com> writes:

| I need to somehow "pass" a file descriptor (socket) from one process to
| another process, does anybody know how this can be done?

you can do it in unix pretty portably (SCM_RIGHTS is a good search
word to use when googling, the stevens "unix network programming" book
also explains it) but python does not seem to expose the required
sendmsg() and recvmsg() socket calls. so you would have to write a
c module.

  -- erno




More information about the Python-list mailing list