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


Groups > comp.lang.python > #57044

Multiprocessing: killing children when parent dies

Date 2013-10-18 18:52 +0600
Subject Multiprocessing: killing children when parent dies
From Марк Коренберг <socketpair@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1222.1382100801.18130.python-list@python.org> (permalink)

Show all headers | 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