Currently I am programming a shell and I use the waitpid()
function for my children processes.
I also installed a signal handler so I can trap the SIGINT (CTRL+C) signal.
So what I want now is when someone presses the SIGINT (CTRL+C) signal it should leave the waitpid()
functions and keep going as usually.
I am looking for a function who can help me about that.