[New-bugs-announce] [issue5898] Hang in Popen.wait() when another process has been created
François Granade <report@bugs.python.org> at psf.upfronthosting.co.za
François Granade <report@bugs.python.org> at psf.upfronthosting.co.za
Fri May 1 22:08:08 CEST 2009
New submission from François Granade <francois at granade.com>:
If I remove the "proc2.stdin.close()" in the script below, the
"proc1.wait()" will hang. Tested on MacOS, Linux, CygWin on 2.5.2 and
2.6. Is it a bug ?
from subprocess import Popen, PIPE
proc1 = Popen('cat -', shell=True, stdin=PIPE, stdout=PIPE)
proc2 = Popen('cat -', shell=True, stdin=PIPE, stdout=PIPE)
# Removing this line make the proc1.wait() hang
proc2.stdin.close()
proc1.stdin.close()
proc1.wait()
----------
components: Library (Lib)
messages: 86901
nosy: farialima
severity: normal
status: open
title: Hang in Popen.wait() when another process has been created
type: behavior
versions: Python 2.5, Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5898>
_______________________________________
More information about the New-bugs-announce
mailing list