On Tue, Sep 06, 2016 at 11:31:04PM +0200, Eric Faurot wrote:
> Previously, all processes would shutdown on receiving SIGINT or SIGTERM.
> When going down, the parent process would kill all the other process and
> waitpid() them.
> 
> Now, only the parent process handles SIGTERM and SIGINT, other processes
> ignore them. Upon receiving one of these signals, the parent process all
> imsg sockets and waitpid() for the children.  It fatal()s if one of the
> imsg sockets is closed unexpectedly.
> 
> Other processes exit() "normally" when one of their imsg socket is closed
> (except for client connection on the control socket of course). That's how
> they are supposed to stop now.  When doing so, they log as "debug" instead
> of "info" because useless logs are useless.
> 
> This makes the shutdown sequence much saner.
> 
> Eric.

Ok sunil@

Reply via email to