What is the Signal function (SIGINT)?
c, sigint, signals
Solution
`SIGINT` is the interrupt signal and is raised when you press Ctrl+C. Its default behavior is to terminate the process. The `SIGINT` signal can be dis-positioned, which means one can change the default behavior (by calling `sighandler`, or setting it `SIG_IGN`).
Now once the action is changed and you want to set it again the default behavior of this signal then you should write
signal(SIGINT, SIG_DFL);
It will again change the default behavior of the signal (which is to terminate the process).
Problem
What does this statement below do? If anyone can explain this function I would really appreciate it. ``` signal(SIGINT, SIG_DFL); ```