Sharing file descriptors across processes

brueckd at tbye.com brueckd at tbye.com
Wed Sep 5 14:31:33 EDT 2001


On 5 Sep 2001, Erno Kuusela wrote:

> | 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.

Much appreciated, thank you!
Dave





More information about the Python-list mailing list