signal function in c code example
Example 1: signal function c
/**
* @param sig - the signal number
* @param func - pointer to the handler function
*/
void (*signal(int sig, void (*func)(int)))(int);
Example 2: signal handlers in c
kill -l for all the signals
use signal function to register signal handlers
man signal