On 05/06/2013 5:42pm, Jay L. wrote:
I had not realized that the file descriptor was inherited by the child.
  It looks like PEP443 <http://www.python.org/dev/peps/pep-0433/> seeks
to overcome this with an optional flag in Python 3.3.  I wonder if
something similar does not exist for those of us 'stuck' in 2.x for a
bit longer.

PEP 433 would only effect processes started using fork+exec. Currently multiprocessing on Unix uses fork but not exec. And anyway, closing the fd would just mean that the child process would inherit a non-functional file object.

_______________________________________________
concurrency-sig mailing list
[email protected]
http://mail.python.org/mailman/listinfo/concurrency-sig

Reply via email to