IMHO, this is too complex.  I would suggest viewing it this way:

                                PARENT                  CHILD

shutdown
        gracefull               SIGHUP                  SIGWINCH
        ungracefull             SIGKILL                 SIGTERM
        (may want to add another to ungracefully shutdown, so that we
        cleanup correctly.)

restart
        gracefull               SIGWINCH
        ungracefull             SIGTERM

As far as child processes are concerned, they only ever shutdown.  The
parent should translate the four threads they can receive into the two
that children understand.

If we are executing in single-user mode, then the child process should
also handle SIGINT for a graceless shutdown.

All other signals should be ignored, except for SIGABORT and SIGABRT,
which should force a core dump.

Ryan

On Mon, 23 Apr 2001, Paul J. Reder wrote:

> In putting the signal function back into prefork, I must rewrite it some
> because it was part of the reason for the deadlock (hence the removal).
>
> The code that replaced it was too genteel in its handling of some of the
> signals (hence the request to rewrite them).
>
> I wanted to verify my understanding of the signals so that I can implement
> and test them accordingly.
>
> SIGTERM  - shutdown ungracefully.
> SIGINT   - shutdown ungracefully.
> SIGQUIT  - shutdown gracefully (no restart)?
> SIGHUP   - shutdown gracefully and restart.
> SIGWINCH - shutdown gracefully and restart.
>
> SIGSEGV, SIGBUS, SIGABORT, SIGABRT, SIGILL should all dump core and exit 
>ungracefully.
>
> SIGXCPU and SIGXFSZ should go to the default handler.
>
> SIGPIPE should be ignored.
>
> Do I have all of these right? Have I missed any?
>
> Thanks,
>
> --
> Paul J. Reder
> -----------------------------------------------------------
> "The strength of the Constitution lies entirely in the determination of each
> citizen to defend it.  Only if every single citizen feels duty bound to do
> his share in this defense are the constitutional rights secure."
> -- Albert Einstein
>
>


_______________________________________________________________________________
Ryan Bloom                              [EMAIL PROTECTED]
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------

Reply via email to