Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
When the shell is not running any process, if I press Ctrl+C on the terminal, the shell will not terminate. Is this simply because the shell ignores the SIGINT signal, or is there another reason?
The shell ignores ctrl-C so that other programs that the shell is running can catch it. An EOF on a blank line exits (ctrl-D in *nix, ctrl-Z in Windows).