New submission from François Granade <franc...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue5898> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com