Re: Detecting process death for anycast named process monitoring

Russell King
2007-05-04T05:54:38Z

On Wed, May 02, 2007 at 06:12:27PM -0500, David M. Lloyd wrote:
> On Wed, 2007-05-02 at 16:30 -0600, Chris Friesen wrote:
> > Glen Turner wrote:
> >
> > > The question is, how can a process with no relationship to another
> > > process detect that process unexpectedly dying? If named goes
> > > away to a better place, we want to shut down the interface
> > > which causes Quagga to inject the anycast route.
>
> > We did something similar where arbitrary processes can register to be
> > sent an arbitrary signal when the state of other processes change.
>
> What about something like inotify, but for processes? That would be
> cool...

Or maybe just ignoring the SIGHUP before exec'ing the named process as
a child.

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/