[issue1731717] race condition in subprocess module

Tom Culliton report at bugs.python.org
Tue Nov 27 22:30:55 CET 2007


Tom Culliton added the comment:

Looking at the subprocess.py code it occurred to me that it never checks
if the value of self.pid returned by os.fork is -1, this would mean that
later it runs waitpid with -1 as the first argument, putting it into
promiscuous (wait for any process in the group) mode.  This seems like a
bad idea...

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1731717>
_____________________________________


More information about the Python-bugs-list mailing list