SIGABRT
Encyclopedia : S : SI : SIG : SIGABRT
On POSIX compliant platforms, SIGABRT is the symbolic name for the signal thrown by computer programs to abort the process. SIGABRT is a symbolic constant defined in signal.h. Symbolic signal names are used as signal numbers can vary across platforms.
On Linux, SIGIOT is a synonym for SIGABRT.
Etymology
SIG- is a common prefix for signal names. ABRT is an abbreviated form of abort. IOT is an abbreviated form of IOT trap, where IOT itself stands for I/O transfer, an instruction on the historic PDP-8 architecture.Usage
SIGABRT is sent by the process to itself when it calls theabort(3) libc function, defined in stdlib.h. The SIGABRT signal can be caught, but it cannot be blocked; if the signal handler returns then all open streams are closed and flushed and the program terminates (dumping core if appropriate). This means that the abort call never returns. Because of this characteristic, it is often used to signal fatal conditions in support libraries; situations where the current operation cannot be completed but the main program can perform cleanup before exiting. It is also used if an assert fails.
| 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 | SIGPWR (SIGINFO) | SIGLOST | SIGWINCH | SIGUNUSED |
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
