1kill -l for all the signals
2
3use signal function to register signal handlers
4man signal
1#define SIGHUP 1 /* Hangup the process */
2#define SIGINT 2 /* Interrupt the process */
3#define SIGQUIT 3 /* Quit the process */
4#define SIGILL 4 /* Illegal instruction. */
5#define SIGTRAP 5 /* Trace trap. */
6#define SIGABRT 6 /* Abort. */