Suppose we run one program in the background and then one in the foreground.
Now we signal an interrupt from the keyboard (ctrl-c).
Which of the 3 processes should get the SIGINT signal? The shell, the foreground process, or the background process?
Suppose we run one program in the background and then one in the foreground.
Now we signal an interrupt from the keyboard (ctrl-c).
Which of the 3 processes should get the SIGINT signal? The shell, the foreground process, or the background process?