Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed1.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.070 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.01; 'that?': 0.05; 'cc:addr :python-list': 0.10; "can't.": 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.16; 'handling': 0.20; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; 'decide': 0.23; '2015': 0.23; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'specify': 0.27; 'message-id:@mail.gmail.com': 0.28; 'certain': 0.31; "can't": 0.32; 'received:google.com': 0.34; 'basis.': 0.35; 'handle': 0.36; 'but': 0.36; 'others.': 0.36; 'should': 0.37; 'subject:: ': 0.37; 'pm,': 0.39; 'some': 0.40; 'default': 0.61; 'cecil': 0.84; 'chrisa': 0.84; 'westerhof': 0.84; 'to:none': 0.90; 'subject:Best': 0.91 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:cc :content-type; bh=FYjYfXS4G25mCb1hpM9lC2RQ8Oik1FZtEW3PMeNjj8c=; b=Gyr0K0K6ppmxl6JOc6c+TBuuL7l46mz0Vgi0Jz936yNyDpgey8E8Q7sl6vyWcSfF+C lMDeSeFvTfPD5H57PvcloYyU4Mg+uArTzVqSJyprvEo/h+jK7i7l2bgW7ADtED+vuS8s nEk/j2husNMZ7hgMpBknSoWFqlRBwIeloeExWgzj3q2pa9wse60uIkCMOnzkE+HK1DZ7 5WREIWaFg2jp9Wo5eF7OWQ2860lFyd1Jnzu8N3fROarPwuJdkT9dWwEXLoyVJ/hnmegP TYjAmVkSo9aRYp6XLOiExKcHPfTU6thkIOiwi0V6165vLlqcIUCpjhzFidNMxrCblGBN F4cQ== MIME-Version: 1.0 X-Received: by 10.50.2.3 with SMTP id 3mr12368685igq.34.1433153072453; Mon, 01 Jun 2015 03:04:32 -0700 (PDT) In-Reply-To: <87mw0jlr8u.fsf@Equus.decebal.nl> References: <87vbf8l9e7.fsf@Equus.decebal.nl> <87vbf88k0n.fsf@elektro.pacujo.net> <87mw0jlr8u.fsf@Equus.decebal.nl> Date: Mon, 1 Jun 2015 20:04:32 +1000 Subject: Re: Best way to prevent zombie processes From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433153080 news.xs4all.nl 2888 [2001:888:2000:d::a6]:51830 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91646 On Mon, Jun 1, 2015 at 7:20 PM, Cecil Westerhof wrote: > But > what if I want for certain Popen signals SIG_IGN and others SIG_DFL. > How should I do that? You can't. A signal is a signal; you can't specify default handling for some and not others. The only way is to actually handle them, and then you can decide what to do on a per-process basis. ChrisA