fork/exec & close file descriptors

Skip Montanaro skip.montanaro at gmail.com
Tue May 19 09:44:07 EDT 2015


On Tue, May 19, 2015 at 8:33 AM, Chris Angelico <rosuav at gmail.com> wrote:

> What Python version are you targeting? Are you aware of PEP 446?


Yeah, I'm still on 2.7, and am aware of PEP 446. Note that many of the file
descriptors will not have been created by my Python code. They will have
been created by underlying C/C++ libraries, so I can't guarantee which
flags were set on file open.

I'm going to continue to pursue solutions which won't require a restart for
now, but would like to have a sane restart option in my back pocket should
it become necessary.

Thx,

Skip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150519/b5b4dce1/attachment.html>


More information about the Python-list mailing list