signal
signal
Defined in header <signal.h> | ||
---|---|---|
void (*signal( int sig, void (*handler) (int))) (int); |
Sets the error handler for signal sig
. The signal handler can be set so that default handling will occur, signal is ignored, or a user-defined function is called.
When signal handler is set to a function and a signal occurs, it is implementation defined whether signal(sig, SIG_DFL)
will be executed immediately before the start of signal handler. Also, the implementation can prevent some implementation-defined set of signals from occ