[issue1731717] race condition in subprocess module

Tom Culliton report at bugs.python.org
Tue Nov 27 23:33:43 CET 2007


Tom Culliton added the comment:

Good question.  The documentation I was reading was mute on the subject 
so I made a "reasonable" guess.  Does it throw an exception instead?

Guido van Rossum wrote:
> Guido van Rossum 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
>>     
>
> What makes you think os.fork(0 can return -1? It's not C you know...
>
> _____________________________________
> Tracker <report at bugs.python.org>
> <http://bugs.python.org/issue1731717>
> _____________________________________
>

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


More information about the Python-bugs-list mailing list