Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91008
| 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 | <ian.g.kelly@gmail.com> |
| 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 | <mjjuc5$1ft$1@r01.glglgl.de> |
| References | <mailman.170.1432127818.17265.python-list@python.org> <87bnhfqmr4.fsf@universite-de-strasbourg.fr.invalid> <mailman.177.1432140299.17265.python-list@python.org> <mjjuc5$1ft$1@r01.glglgl.de> |
| Date | Thu, 21 May 2015 08:13:44 -0600 |
| Subject | Re: subprocess.Popen zombie |
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| To | Python <python-list@python.org> |
| 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 <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.199.1432217627.17265.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
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.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
subprocess.Popen zombie Robin Becker <robin@reportlab.com> - 2015-05-20 14:16 +0100
Re: subprocess.Popen zombie Cecil Westerhof <Cecil@decebal.nl> - 2015-05-20 16:48 +0200
Re: subprocess.Popen zombie Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2015-05-20 17:42 +0200
Re: subprocess.Popen zombie Robin Becker <robin@reportlab.com> - 2015-05-20 17:44 +0100
Re: subprocess.Popen zombie Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2015-05-21 08:35 +0200
Re: subprocess.Popen zombie Ian Kelly <ian.g.kelly@gmail.com> - 2015-05-21 08:13 -0600
csiph-web