Ross Lagerwall added the comment:
It's caused by the following check in _posixsubprocess.c:
if (close_fds && errpipe_write < 3) { /* precondition */
PyErr_SetString(PyExc_ValueError, "errpipe_write must be >= 3");
return NULL;
}
which was written by Gregory P. Smith in 2010 (adding to nosy list).
I'm not entirely sure why this check is here, presumably its due to the way
close_fds=True is handled.
The close fds logic is also hardcoded to close fds from 3 upwards,.
----------
nosy: +gregory.p.smith
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15798>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com