Re: Detecting process death for anycast named process monitoring

Andrew Morton
2007-05-03T09:40:57Z

On Thu, 03 May 2007 06:34:42 +0930 Glen Turner <gdt@gdt.id.au> wrote:

> The question is, how can a process with no relationship to another
> process detect that process unexpectedly dying?

Monitor the system using the taskstats interface. There is a sample
application and documentation in Documentation/accounting/.

Your monitoring application will receive a netlink packet each time a process
exits. It includes the exit code and the process's name.