[Python-Dev] Re: PEP 324 (process module) (original) (raw)

Guido van Rossum guido at python.org
Thu Aug 5 06:17:53 CEST 2004


As I've found, if the end of the pipes in that represent the child's stderr/stdout fds are closed in the parent, a select() reading the "other" ends of these pipes will busywaut (at least on Linux). Other than than, I think this select() would be the absolute right thing on POSIX rather than using threads or polling. Is there a way around this problem or is it just a fact of life?

The reading code needs to recognize the EOF and then conclude that it's not going to get anything else from that pipe. No different than sockets.

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list