Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.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.113 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.79; '*S*': 0.01; 'cc:addr:python-list': 0.11; 'thread': 0.14; '(must': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'cc:addr:python.org': 0.22; 'certainly': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'raised': 0.31; 'fri,': 0.33; 'received:google.com': 0.35; 'process,': 0.38; 'files': 0.38; 'pm,': 0.38; '30,': 0.65; 'risk': 0.72; 'ethan': 0.84; 'furman': 0.84; 'suboptimal.': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=32Tanh5gk8lqp6rHeTVGN1G/GQ9nrti/kp0h/abeCRg=; b=0UAgkGyQVFnkHtoCnTBJvIACg0VWMhV0CVJknBT5n2ZPHCSgmZCYwuwFP78XdAKo+m gcVEIiqfbatBcsxPeDW/G/IU3duHj1X72/x4Kl3w01cFZwVRf7tudGZrkNGCKAhOzeLw DcGlKNeNgtK6o82b3IJTuc9luqrR1eHhQsMtwVDeVUti5ugVM6fDLTeRZnXmyGLUDb0g duwd5nZeUUc3DLqsTxGyWqmWsfVeEezUDP4skFj9XtZdX02uc7mHMZS0gHRXbDbevYor XHyxwnsMrMcSOz9JZZsirz5mIv8Kb4I1mT5VWqZbuvN0TKwPh1z1OLXbaFmBlELZommb QsQA== X-Received: by 10.140.91.113 with SMTP id y104mr24600547qgd.3.1401487134641; Fri, 30 May 2014 14:58:54 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <5388F14B.3010807@stoneleaf.us> References: <368aec88-ebe9-4da0-a537-92ff9b690647@googlegroups.com> <5388F14B.3010807@stoneleaf.us> From: Devin Jeanpierre Date: Fri, 30 May 2014 14:58:14 -0700 Subject: Re: daemon thread cleanup approach To: Ethan Furman Content-Type: text/plain; charset=UTF-8 Cc: "comp.lang.python" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1401487142 news.xs4all.nl 2933 [2001:888:2000:d::a6]:44642 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72323 On Fri, May 30, 2014 at 1:59 PM, Ethan Furman wrote: > Given the use-case (must shut down, cannot risk a hung process, orphan files > be damned) I don't think having a daemon thread die because it raised an > exception trying to access a missing global is a big deal. It's certainly suboptimal. Subprocesses are better in every way. -- Devin