Non-blocking pipes during subprocess handling
Gabriel Genellina
gagsl-py at yahoo.com.ar
Mon Jan 8 20:47:36 EST 2007
At Monday 8/1/2007 22:09, Tom Plunket wrote:
>I'm using subprocess to launch, well, sub-processes, but now I'm
>stumbling due to blocking I/O.
>
>Is there a way for me to know that there's data on a pipe, and possibly
>how much data is there so I can get it? Currently I'm doing this:
Using a thread for each stream is the safest way, specially if you
can't control the child process.
--
Gabriel Genellina
Softlab SRL
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas
More information about the Python-list
mailing list