[issue2320] Race condition in subprocess using stdin

Ludwig Hähne report at bugs.python.org
Thu Mar 20 11:39:14 CET 2008


Ludwig Hähne <wkx at gmx.li> added the comment:

Just realized that passing 'close_fds=True' also circumvents the problem:

s = subprocess.Popen(("cat"), stdin=subprocess.PIPE, close_fds=True)

Should this issue be closed as it's that easy to avoid? I would still
like to know what happens here, though.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2320>
__________________________________


More information about the Python-bugs-list mailing list