Message142483
"The guys at #python-dev confirmed the same happens on 2.7 but not on 3.x."
Really? This is on gentoo, not debian, admittedly:
coelacanth ~ 11:12:36 $ python3
Python 3.1.3 (r313:86834, May 1 2011, 09:41:48)
[GCC 4.4.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
>>> proc1 = subprocess.Popen(['cat'], stdin=subprocess.PIPE)
>>> proc2 = subprocess.Popen(['cat'], stdin=subprocess.PIPE)
>>> proc2.stdin.close()
>>> proc2.wait()
0
>>>
coelacanth ~ 11:12:13 $ python3.1
Python 3.1.3 (r313:86834, May 1 2011, 09:41:48)
[GCC 4.4.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
>>> proc1 = subprocess.Popen(['cat'], stdin=subprocess.PIPE)
>>> proc2 = subprocess.Popen(['cat'], stdin=subprocess.PIPE)
>>> proc1.stdin.close()
>>> proc1.wait()
[hangs] |
|
Date |
User |
Action |
Args |
2011-08-19 18:14:14 | Ben.Wolfson | set | recipients:
+ Ben.Wolfson, neologix, idank |
2011-08-19 18:14:14 | Ben.Wolfson | set | messageid: <1313777654.59.0.535553163654.issue12786@psf.upfronthosting.co.za> |
2011-08-19 18:14:13 | Ben.Wolfson | link | issue12786 messages |
2011-08-19 18:14:13 | Ben.Wolfson | create | |
|