read stdout/stderr without blocking
Jacek Popławski
jpopl at interia.pl
Tue Sep 13 10:36:41 EDT 2005
More information about the Python-list mailing list
Tue Sep 13 10:36:41 EDT 2005
- Previous message (by thread): read stdout/stderr without blocking
- Next message (by thread): read stdout/stderr without blocking
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Grant Edwards wrote: > You're right. I must have been remembering the behavior of a > network socket. Apparently, you're supposed to read a single > byte and then call select() again. That seems pretty lame. I created another thread with single read(), it works, as long as I have only one PIPE (i.e. stderr is redirected into stdout). I wonder is it Python limitation or systems one (I need portable solution)?
- Previous message (by thread): read stdout/stderr without blocking
- Next message (by thread): read stdout/stderr without blocking
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list