[issue18571] Implementation of the PEP 446: non-inheritable file descriptors

STINNER Victor report at bugs.python.org
Mon Aug 12 03:19:13 CEST 2013


STINNER Victor added the comment:

+    if (make_inheritable(py_fds_to_keep) < 0)
+        goto error;
+    /* errpipe_write is part of py_fds_to_keep. It must be closed at
+       exec(), but kept open in the child process until exec() is called. */
+    if (_Py_set_inheritable((int)errpipe_write, 0, NULL) < 0)
+        goto error;

make_inheritable() should ignore errpipe_write, instead of changing twice the inheritable flag of errpipe_write.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18571>
_______________________________________


More information about the Python-bugs-list mailing list