El archivo de cabecera de la biblioteca estándar de C
signal.h se utiliza para especificar como un programa puede manejar situaciones
excepcionales mediante señales. Señales tales como la división entre cero o un
evento asíncrono indeseado fuera del programa.
|  | 
| Foto tomada de freedigitalphotos.net | 
int raise(int sig) - Envía una señal.
psignal(int sig, const char *s) -  Devuelve a stderr una cadena que representa
un número de señal.
void* signal(int sig, void (*func)(int)) - Establece las
medidas adoptadas cuando el programa recibe la señal.
Tipos:
typedef
i-type sig_atomic_t
Macros:
SIG_DFL – Selecciona el manejo de la señal.
SIG_IGN – Ignora una señal.
SIG_ERR – Un número que se usa para errores.
Constantes:
| 
Constante | 
Significado | 
Sistemas | 
| 
SIGHUP | 
Hangup | 
POSIX | 
| 
SIGINT | 
Interrupt | 
ANSI | 
| 
SIGQUIT | 
Quit | 
POSIX | 
| 
SIGILL | 
Illegal instruction | 
ANSI | 
| 
SIGABRT | 
Abort | 
ANSI | 
| 
SIGTRAP | 
Trace trap | 
POSIX | 
| 
SIGIOT | 
IOT trap | 
4.2 BSD | 
| 
SIGEMT | 
EMT trap | 
4.2 BSD | 
| 
SIGINFO | 
Information | 
4.2 BSD | 
| 
SIGFPE | 
Floating-point exception | 
ANSI | 
| 
SIGKILL | 
Kill, unblock-able | 
POSIX | 
| 
SIGBUS | 
Bus error | 
4.2 BSD | 
| 
SIGSEGV | 
Segmentation violation | 
ANSI | 
| 
SIGSYS | 
Bad
  argument to system call | 
4.2 BSD | 
| 
SIGPIPE | 
Broken pipe | 
POSIX | 
| 
SIGALRM | 
Alarm clock | 
POSIX | 
| 
SIGTERM | 
Termination | 
ANSI | 
| 
SIGUSR1 | 
User-defined signal 1 | 
POSIX | 
| 
SIGUSR2 | 
User-defined signal 2 | 
POSIX | 
| 
SIGCHLD | 
Child status has changed | 
POSIX | 
| 
SIGCLD | 
Same as SIGCHLD | 
System V | 
| 
SIGPWR | 
Power failure restart | 
System V | 
| 
SIGXCPU | 
Exceeded CPU time | 
POSIX | 
| 
SIGSTOP | 
Pause execution | 
POSIX | 
| 
SIGCONT | 
Resume execution | 
POSIX | 
¿Qué utilidades ves al uso de signal.h?