This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author farialima
Recipients farialima
Date 2009-05-01.20:08:07
SpamBayes Score 6.8283086e-09
Marked as misclassified No
Message-id <1241208488.61.0.0189551533272.issue5898@psf.upfronthosting.co.za>
In-reply-to
Content
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()
History
Date User Action Args
2009-05-01 20:08:08farialimasetrecipients: + farialima
2009-05-01 20:08:08farialimasetmessageid: <1241208488.61.0.0189551533272.issue5898@psf.upfronthosting.co.za>
2009-05-01 20:08:07farialimalinkissue5898 messages
2009-05-01 20:08:07farialimacreate