Can anyone describe to me what is happening in the code below. I am having trouble understanding the signal examples online. The exit_handlr function is returning a 0 for success and 1 for process that terminated abnormally. Thanks.
Code:97 signal(SIGHUP,exit_hndlr); 98 signal(SIGINT,exit_hndlr); 99 signal(SIGQUIT,exit_hndlr); 100 signal(SIGTERM,exit_hndlr);