Message86901
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() |
|
Date |
User |
Action |
Args |
2009-05-01 20:08:08 | farialima | set | recipients:
+ farialima |
2009-05-01 20:08:08 | farialima | set | messageid: <1241208488.61.0.0189551533272.issue5898@psf.upfronthosting.co.za> |
2009-05-01 20:08:07 | farialima | link | issue5898 messages |
2009-05-01 20:08:07 | farialima | create | |
|