PosixSignalManagerImpl.cpp
//==============================================================================
// Registers a special signal handler for this signal which will start recording
// the signal's delivery status to internal storage.  Use isSignalDelivered() to
// retrieve the signal's current delivery status.
//==============================================================================
Registers a special signal handler for this signal which will start recording
the signal's delivery status to internal storage.  Use isSignalDelivered() to
retrieve the signal's current delivery status.
Registers a special signal handler for this signal which will start recording the signal ' s delivery status to internal storage . Use isSignalDelivered () to retrieve the signal ' s current delivery status .
bool PosixSignalManagerImpl::registerSignal(int sig)
{
    struct sigaction act;
    act.sa_handler = handle_signal;
    sigemptyset(&act.sa_mask);
    act.sa_flags = 0;
    return sigaction(sig, &act, 0) == 0;
}
bool PosixSignalManagerImpl :: registerSignal ( int sig ) { struct sigaction act ; act . sa_handler = handle_signal ; sigemptyset ( & act . sa_mask ) ; act . sa_flags = 0 ; return sigaction ( sig , & act , 0 ) == 0 ; }
Registers a special signal handler for this signal which will start recording
the signal's delivery status to internal storage.
Registers a special signal handler for this signal which will start recording the signal ' s delivery status to internal storage .