[issue2320] Race condition in subprocess using stdin

Adam Olsen report at bugs.python.org
Sat Jun 14 09:00:06 CEST 2008


Adam Olsen <rhamph at gmail.com> added the comment:

This is messy.  File descriptors from other threads are leaking into
child processes, and if the write end of a pipe never gets closed in all
of them the read end won't get EOF.

I suspect "cat"'s stdin is getting duplicated like that, but I haven't
been able to verify - /proc/<pid>/fd claims fd 0 is /dev/pts/2.  Maybe
libc does some remapping.

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


More information about the Python-bugs-list mailing list