Ignore a signal
#include <signal.h> int main(void) { signal(SIGABRT, SIG_IGN); raise(SIGABRT); } SIG_IGN selects the ignore disposition for SIGABRT; raise triggers that signal. section 19.6
<signal.h> defines C’s minimal signal-handling interface. Each signal number has a disposition: SIG_DFL selects its default handling, SIG_IGN ignores it, and a programmer can supply a handler. A handler receives the signal number. If it returns, control resumes where it was interrupted. section 19.6
Figure 19.3 Control flow after an interrupt return jumps to the position where the interrupt occurred
The diagram shows normal control flow interrupted by a handler and resuming at the interruption point. section 19.6
TAKEAWAY: Use this interface for elementary situations. Platforms provide additional signal numbers and rules; relying on them requires platform-specific definitions and reduces portability. section 19.6

