Re: Detecting process death for anycast named process monitoring

From: Andrew Morton
Date: Thu May 03 2007 - 05:41:15 EST


On Thu, 03 May 2007 06:34:42 +0930 Glen Turner <gdt@xxxxxxxxx> 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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/