SIGINT

From LQWiki
Jump to navigation Jump to search

SIGINT is the interrupt signal. It is usually sent to processes launched from the terminal by pressing ctrl-C on the keyboard. Non-interactive programs usually respond with default behavior, which is to crash. This is a useful way to crash a program that has gone into an infinite loop. Interactive programs often handle SIGINT as an instruction to stop whatever they are doing and return to a command prompt.