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 Ben.Wolfson
Recipients Ben.Wolfson, idank, neologix
Date 2011-08-19.18:14:13
SpamBayes Score 2.3773305e-08
Marked as misclassified No
Message-id <1313777654.59.0.535553163654.issue12786@psf.upfronthosting.co.za>
In-reply-to
Content
"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]
History
Date User Action Args
2011-08-19 18:14:14Ben.Wolfsonsetrecipients: + Ben.Wolfson, neologix, idank
2011-08-19 18:14:14Ben.Wolfsonsetmessageid: <1313777654.59.0.535553163654.issue12786@psf.upfronthosting.co.za>
2011-08-19 18:14:13Ben.Wolfsonlinkissue12786 messages
2011-08-19 18:14:13Ben.Wolfsoncreate