Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A signal is an interrupt that is used to notify a process that an event has occurred. That process can then respond to that event accordingly. ISO/IEC 9899-1999 C C99 provides functions for sending and handling signals within a C program.

...

Code Block
void (*signal(int sig, void (*func)(int)))(int);

There is also a POSIX implementation, that offers more control over how signals are processed.

Improper handling of signals can lead to security vulnerabilities. The following rules and recommendations are designed meant to reduce the eliminate common errors associated with signal handling.

...