SIGINT (POSIX)
From Wikipedia, the free encyclopedia
Description: | Terminal interrupt signal |
---|---|
Default action: | Abnormal termination of the process |
SA_SIGINFO macros | |
None |
On POSIX-compliant platforms, SIGINT is the signal thrown by a computer program when a user wishes to interrupt a process. In source code, SIGINT is a symbolic constant defined in the header file signal.h
. Symbolic signal names are used because a signal's numeric value can vary across platforms; on the vast majority of systems, it is signal #2
[edit] Etymology
SIG is a common prefix for signal names. INT is an abbreviated form of interrupt or interactive.
[edit] Usage
SIGINT is sent when the user on the process's terminal presses the interrupt the running process key — typically Control-C, but on some systems, the "delete" character or "break" key (the latter is not an ASCII character, but an out-of-band signal such as an electrical condition on a serial port).
[edit] See also
POSIX Signals |
SIGABRT | SIGALRM | SIGFPE | SIGHUP | SIGILL | SIGINT | SIGKILL | SIGPIPE | SIGQUIT | SIGSEGV | SIGTERM | SIGUSR1 | SIGUSR2 | SIGCHLD | SIGCONT | SIGSTOP | SIGTSTP | SIGTTIN | SIGTTOU | SIGBUS | SIGPOLL | SIGPROF | SIGSYS | SIGTRAP | SIGURG | SIGVTALRM | SIGXCPU | SIGXFSZ | Realtime Signals are user definable—SIGRTMIN+n through SIGRTMAX. |
Common non-POSIX signals and synonyms |
SIGIOT | SIGEMT | SIGSTKFLT | SIGIO | SIGCLD | SIGINFO | SIGPWR (SIGINFO) | SIGLOST | SIGWINCH | SIGUNUSED |