cooling/cooling.cc
/// Signal handler function for various signals records the signal in
/// globals g_Terminate or HUP.  These are monitored in the run loop.
/// Other signals (e.g. USR1, have no effect).
Signal handler function for various signals records the signal in
globals g_Terminate or HUP.  These are monitored in the run loop.
Other signals .
Signal handler function for various signals records the signal in globals g_Terminate or HUP . These are monitored in the run loop . Other signals .
void my_sigterm_handler(int s)
{
    if ((s == SIGTERM) || (s == SIGINT) || (s==SIGQUIT)) {
        g_Terminate = true;
        g_TermSignal = s;
    }
    else if (s == SIGHUP) {
        g_ReloadReq = true;
    }
}
void my_sigterm_handler ( int s ) { if ( ( s == SIGTERM ) || ( s == SIGINT ) || ( s == SIGQUIT ) ) { g_Terminate = true ; g_TermSignal = s ; } else if ( s == SIGHUP ) { g_ReloadReq = true ; } }
Signal handler function for various signals records the signal in
globals g_Terminate or HUP.
Signal handler function for various signals records the signal in globals g_Terminate or HUP .