[issue8458] buildbot: test_cmd_line failure on Tiger: [Errno 9] Bad file descriptor

Antoine Pitrou report at bugs.python.org
Tue Jan 4 12:15:05 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> that race condition, if thats what this is, is likely not OS X
> specific.  the child process could complete or close its fds before we
> reach that code on any OS.  We either need to guard these
> io.open(p2c*...) lines against EBADF OSError's or we should create the
> io wrappers before _execute_child() is called.

Creating them before _execute_child() is the obvious and simple solution
(if my diagnosis is correct). Is there any downside to doing so?

----------

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


More information about the Python-bugs-list mailing list