Well, on Linux I use select first to see if there's something to read. Maybe
this works on Windows too?
This is my code:
fd = os.open(filename, os.O_NONBLOCK)
ready = select.select([fd], [], [], 0.25) ## timeout after
0.25 seconds.
if
Jakob Simon-Gaarde wrote:
> Follow-up on a thread from 1999 (see below)
>
> Well now it is 2005 and the operating system I'm using is Windows
> Server 2003, and I can still see that the same problem persists with:
>
> win32pipe.popen2()
> win32pipe.popen3()
> win32pipe.popen4()
>
> while win32pi
Me again.
I forgot to mention that readline() in popen2,3 and 4 even locks up the
parent-proces though it is called from a thread, so it's a real
deadlock.
--
http://mail.python.org/mailman/listinfo/python-list