[issue2475] Popen.poll always returns None

Josh Cogliati report at bugs.python.org
Fri Apr 4 05:33:29 CEST 2008


Josh Cogliati <jjcogliati-r1 at yahoo.com> added the comment:

Hm.  Well, after filing the bug, I created a thread for each subprocess,
and had that thread do an wait on the process, and that worked fine. 
So, I guess at minimum it sounds like the documentation for poll could
be improved to mention that it will not catch the state if something
else does.  I think a better fix would be for poll to return some kind
of UnknownError instead of None if the process was finished, but python
did not catch it for some reason (like using os.wait() :)

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2475>
__________________________________


More information about the Python-bugs-list mailing list