Subprocess does not return for longer-running process
Lawrence D'Oliveiro
ldo at geek-central.gen.new_zealand
Thu Sep 23 23:18:47 EDT 2010
In message <pan.2010.09.23.17.17.56.906000 at nowhere.com>, Nobody wrote:
> 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.
And what do you think the poll method uses?
More information about the Python-list
mailing list