Catching a signal only in a specific occasion in C
I know that I can handle SIGCHLD as I want whenever it is sent. If I am not wrong, SIGCHLD is sent to the parent process every time the child is stopped, not only through termination but also because of an interrupt (eg SIGSTOP) sent. I want SIGCHLD to be handled specifically only on termination, not on interruption.