...
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.
...