Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.044 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'subject:skip:s 10': 0.05; '21,': 0.07; '>>': 0.16; 'runs.': 0.16; 'timed': 0.16; 'wrote:': 0.16; '>': 0.18; 'skip:n 60': 0.22; 'am,': 0.23; '2015': 0.23; 'header:In-Reply-To:1': 0.24; 'message- id:@mail.gmail.com': 0.28; 'really,': 0.29; 'routine': 0.29; 'skip:& 70': 0.29; 'certain': 0.31; 'schemes': 0.33; 'skip:& 10': 0.34; 'add': 0.34; 'received:google.com': 0.34; 'could': 0.35; 'to:addr:python-list': 0.35; 'subject:: ': 0.37; 'to:addr:python.org': 0.39; 'skip:t 20': 0.40; 'forget': 0.60; 'even': 0.61; 'recognition': 0.84; 'routines': 0.84; 'to:name:python': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=+xYfqmV1kk5OPeLQXQzdR8d2IzX0viA5IZLUZI3F2lU=; b=zJrwltUfQOBlBNlGV9sWum+etlxZQrGP1/XWHitUNPlIAYe0PX4nNl2AGEh354uvx6 dZ7+4FvDrRFnFr3IJDW3UbDYGQJOt+jIDfAcb1KhzUov+AH98a3tiNb0GWwi1FMPhK9r pLxTfnVsXETTOI4oJOnZtAKlxtuk2wUDFGvClRdK2Z44AJaiv2xyafTqRmS5L3zepOPQ pIelVEmA4G9rHMYRSU5DldbX1vVbbSxhIeg4wQe7oCKr77wGhRiZxaizDDrlWJMlPVAZ 7V96kmU054newnTDYjGhqHYbPz8zfl9tQQtgjR75pWJXVId+646owxeAkE7ZWIfWVu/2 ffIA== MIME-Version: 1.0 X-Received: by 10.43.104.69 with SMTP id dl5mr3467483icc.94.1432217624821; Thu, 21 May 2015 07:13:44 -0700 (PDT) In-Reply-To: References: <87bnhfqmr4.fsf@universite-de-strasbourg.fr.invalid> Date: Thu, 21 May 2015 08:13:44 -0600 Subject: Re: subprocess.Popen zombie From: Ian Kelly To: Python Content-Type: multipart/alternative; boundary=bcaec51719e1c4c72a0516982690 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 54 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1432217627 news.xs4all.nl 2886 [2001:888:2000:d::a6]:60100 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91008 --bcaec51719e1c4c72a0516982690 Content-Type: text/plain; charset=UTF-8 On May 21, 2015 12:41 AM, "Thomas Rachel" < nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@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. --bcaec51719e1c4c72a0516982690 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On May 21, 2015 12:41 AM, "Thomas Rachel" <nutznetz= -0c1b6768-bfa9-48d5-a470-7603bd3aa915@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:

=C2=A0=C2=A0=C2=A0 Thread(target=3Dp.wait).start()

And then you can forget all about it.

--bcaec51719e1c4c72a0516982690--