subprocess.Popen zombie

Ian Kelly ian.g.kelly at gmail.com
Thu May 21 10:13:44 EDT 2015


On May 21, 2015 12:41 AM, "Thomas Rachel" <
nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915 at spamschutz.glglgl.de> wrote:
>
> Am 20.05.2015 um 18:44 schrieb Robin Becker:
>
>> not really, it's just normal to keep event routines short; the routine
>> which beeps is after detection of the cat's entrance into the house and
>> various recognition schemes have pronounced intruder :)
>
>
> You could add a timed "cleanup" routine which .wait()s after a certain
time (250 ms or so).
>
> Or even better, which .poll()s and re-schedules itself if the process
still runs.

Or just:

    Thread(target=p.wait).start()

And then you can forget all about it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150521/0ac85e35/attachment.html>


More information about the Python-list mailing list