Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added typedef of signal handlers from DCL05-A

...

Signals are handled by a process by registering a signal handler using the signal() function, which is specified as:

Code Block
typedef void (*SighandlerType)(int signum);
extern SighandlerType signal(int sigsignum, voidSighandlerType (*func)(int)))(int);
handler);

(Note that the signal handler function type will have different names on different implementations.)

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

...