I am trying to find this in mans but could spot the right man or the right paragraph.
1 Answer
Will SIGINT and SIGSTOP pause child processes ? No, default action of SIGINT is to terminate the process not the pause. While SIGSTOP suspends the process & it can be resumes later by SIGCONT.
From the manual page of signal
Signal Standard Action Comment ──────────────────────────────────────────────────────── SIGINT P1990 Term Interrupt from keyboard SIGSTOP P1990 Stop Stop process
when you send SIGINT to a process via kill() or by keyboard interrupt, it terminates the process.
However you can modify the default action of certain signals using sigaction except SIGKILL and SIGSTOP as pointed in man page
The signals
SIGKILLandSIGSTOPcannot be caught, blocked, or ignored.
SIGINT, Why child process still alive after parent process was killed in Linux?