[issue4192] Subprocess error with I/O redirection to Pipes

Pascal Chambon report at bugs.python.org
Thu Mar 5 22:23:04 CET 2009


Pascal Chambon <chambon.pascal at gmail.com> added the comment:

Thansk a lot for reviewing the problem

Indeed, "p.wait()" seems to do the trick in this case.

Is there any global way to avoid such pipe problems ? I mean, in any
case, one end of each pipe has to be closed before the other end, so
such errors might occur with the child process' stdin (in case the child
dies first and the parent flushes then its pipe toward the child's
stdin) or with its stdout (if the parent dies first and the child
flushes then its stdout). 

Or are we sure that there won't be errors as long as children die before
the parent process ?

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


More information about the Python-bugs-list mailing list