Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #57044

Multiprocessing: killing children when parent dies

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <socketpair@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.227
X-Spam-Level **
X-Spam-Evidence '*H*': 0.60; '*S*': 0.05; 'subject:when': 0.16; 'import': 0.22; 'raise': 0.29; 'message-id:@mail.gmail.com': 0.30; 'fault': 0.31; 'received:google.com': 0.35; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'from:charset:utf-8': 0.61; 'subject:skip:M 10': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=7Rriijp/alg2vAASz/b8RUTOsfKA6/nEK1pxXoe0d2Y=; b=AMKGAKMlJw8hkA7vMMxFhvXVEsP0gzN2wswzH8X89bXX76NOTxROFtyEAvhNuXa1RJ 5SWucl63TE8Np1BRTd8Q4NK0JQ+3ZaCtt24wKvk6G2zk913eo8z8ar1MhS9gjz4MMARK GJBK/8UBz2MSd3uYInwYCVTcQMYrVIJ0gGv4Rf3ek1xGyg2nVtgDGdO7lXMqbGqojpAS zTgufdvFSewRDmVgChKnBrXiHkHY6R9/6ICx1LQ9E5Aen/VL7cuTEZJjcsN6wYhrkXTH ytpPVNj4kXzduhEQ0pVAInVQwlJwbCETc7uRl63UYlWdtxSmkTDmHJpVUVvp2N349H7O TGfg==
MIME-Version 1.0
X-Received by 10.224.123.13 with SMTP id n13mr4177054qar.33.1382100751879; Fri, 18 Oct 2013 05:52:31 -0700 (PDT)
Date Fri, 18 Oct 2013 18:52:31 +0600
Subject Multiprocessing: killing children when parent dies
From Марк Коренберг <socketpair@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=UTF-8
X-Mailman-Approved-At Fri, 18 Oct 2013 14:53:20 +0200
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.1222.1382100801.18130.python-list@python.org> (permalink)
Lines 8
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1382100801 news.xs4all.nl 15979 [2001:888:2000:d::a6]:33732
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:57044

Show key headers only | View raw


import prctl

prct.set_pdeathsig(.....)
if os.getppid() == 1:
 raise AlreadyDead()

-- 
Segmentation fault

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Multiprocessing: killing children when parent dies Марк Коренберг <socketpair@gmail.com> - 2013-10-18 18:52 +0600
  Re: Multiprocessing: killing children when parent dies John Ladasky <john_ladasky@sbcglobal.net> - 2013-10-18 09:18 -0700
    Re: Multiprocessing: killing children when parent dies Ricardo Aráoz <ricaraoz@gmail.com> - 2013-10-18 15:53 -0300

csiph-web