Message142475
| Author |
idank |
| Recipients |
idank |
| Date |
2011年08月19日.16:31:01 |
| SpamBayes Score |
0.00017134697 |
| Marked as misclassified |
No |
| Message-id |
<1313771462.57.0.438793303014.issue12786@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The following program hangs on Debian, Python 2.6.6:
import subprocess
proc1 = subprocess.Popen(['cat'], stdin=subprocess.PIPE)
proc2 = subprocess.Popen(['cat'], stdin=subprocess.PIPE)
proc1.stdin.close()
proc1.wait()
Changing the last two lines to:
proc2.stdin.close()
proc2.wait()
Doesn't hang. The guys at #python-dev confirmed the same happens on 2.7 but not on 3.x. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年08月19日 16:31:02 | idank | set | recipients:
+ idank |
| 2011年08月19日 16:31:02 | idank | set | messageid: <1313771462.57.0.438793303014.issue12786@psf.upfronthosting.co.za> |
| 2011年08月19日 16:31:01 | idank | link | issue12786 messages |
| 2011年08月19日 16:31:01 | idank | create |
|