Subprocess does not return for longer-running process

Nobody nobody at nowhere.com
Thu Sep 23 19:17:59 CEST 2010


On Thu, 23 Sep 2010 12:25:53 +1200, Lawrence D'Oliveiro wrote:

>> And I can't think of any reason why you should use os.waitpid() or
>> similar; use the .wait() method.
> 
> I have used WNOHANG to poll for completion of a subprocess while providing 
> progress updates to the user.

This can be done via the .poll() method.




More information about the Python-list mailing list