Steven Stewart-Gallus added the comment:

It occurred to me that the current patch I have is wrong and that using 
_Py_set_inheritable is wrong because EBADF can occur in the brute force version 
which in the case of _Py_set_inheritable raises an error which I am not sure is 
asynch signal safe. I could test ahead of time but that is a bit hacky. The 
most principled approach would be to extract either a common set_cloexec or 
set_inheritable function. If set_inheritable is done then I would have to 
report either a Windows error or an errno error which would be messy. I'm not 
sure where the best place to put the set_cloexec function would be.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21627>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to