Re: [Pythonmac-SIG] Subprocess module hangs with select

2005-08-03 Thread Sriram Srinivasan
Thanks Bob, for the prompt response. I guessed as much. In any case, select over a pipe isn't portable to Windows, so I converted it to a threaded + blocking I/O. Simpler code and works well enough for my case (I won't end up spawning too many threads) --Sriram On Aug 4, 2005, at 6:41 AM,

Re: [Pythonmac-SIG] Subprocess module hangs with select

2005-08-03 Thread Bob Ippolito
On Aug 3, 2005, at 1:07 PM, Sriram Srinivasan wrote: > I wonder if anyone has seen this behavior or can explain it to me. > > I Popen a process and monitor its stdout using select, as follows. > > process = Popen(args,stdin=PIPE, stdout=PIPE, stderr=PIPE) > while True: > if not

[Pythonmac-SIG] Subprocess module hangs with select

2005-08-03 Thread Sriram Srinivasan
I wonder if anyone has seen this behavior or can explain it to me. I Popen a process and monitor its stdout using select, as follows. process = Popen(args,stdin=PIPE, stdout=PIPE, stderr=PIPE) while True: if not (process.returncode == None): print process.returncod