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


Groups > comp.lang.python > #10714 > unrolled thread

Re: Notifications when process is killed

Started byChris Angelico <rosuav@gmail.com>
First post2011-08-02 11:44 +0100
Last post2011-08-02 11:44 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Notifications when process is killed Chris Angelico <rosuav@gmail.com> - 2011-08-02 11:44 +0100

#10714 — Re: Notifications when process is killed

FromChris Angelico <rosuav@gmail.com>
Date2011-08-02 11:44 +0100
SubjectRe: Notifications when process is killed
Message-ID<mailman.1760.1312281844.1164.python-list@python.org>
On Tue, Aug 2, 2011 at 11:36 AM, Andrea Di Mario <anddimario@gmail.com> wrote:
> If i use SIGCHLD, i will have difficult when parent receive a SIGTERM, or not?

What you would do is create two processes. Set up your signal
handlers, then fork; in the parent, just watch for the child's death -
in the child, do all your work. When the parent receives SIGCHLD, it
can ascertain the cause of death.

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web