Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #16549
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2011-12-02 07:57 -0800 |
| References | <CAGGWHE7b-4UvtinLW2U4jWv_uD7_nLMCQBxLjZ2rFEjsTxkZAQ@mail.gmail.com> <mailman.3224.1322838818.27778.python-list@python.org> |
| Subject | Re: Multiprocessing: killing children when parent dies |
| From | 88888 Dihedral <dihedral88888@googlemail.com> |
| Message-ID | <mailman.3227.1322841479.27778.python-list@python.org> (permalink) |
On Friday, December 2, 2011 11:13:34 PM UTC+8, Chris Angelico wrote: > On Sat, Dec 3, 2011 at 2:05 AM, Mihai Badoiu <mba...@gmail.com> wrote: > > In the multiprocessing module, on a Process p, by just doing p.daemon=1 > > before p.start(), we can make the child die when the parent exits. However, > > the child does not die if the parent gets killed. > > How can I make sure the child die when the parent gets killed? > > Are you in control of the killing of the parent? One easy way would be > to catch the signal (say SIGINT) and initiate an orderly shutdown, > signalling the children first. > > ChrisA Multiple thread supporting programming languages in true OOP as Erlang and Python do not talk about POSIX signals.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Multiprocessing: killing children when parent dies Chris Angelico <rosuav@gmail.com> - 2011-12-03 02:13 +1100
Re: Multiprocessing: killing children when parent dies 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-02 07:57 -0800
Re: Multiprocessing: killing children when parent dies 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-02 07:57 -0800
Re: Multiprocessing: killing children when parent dies Chris Angelico <rosuav@gmail.com> - 2011-12-03 03:14 +1100
Re: Multiprocessing: killing children when parent dies 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-02 08:27 -0800
Re: Multiprocessing: killing children when parent dies 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-02 08:27 -0800
Re: Multiprocessing: killing children when parent dies Dan Stromberg <drsalists@gmail.com> - 2011-12-07 11:50 -0800
csiph-web