1ABORT(3) Linux Programmer's Manual ABORT(3)
2
3
4
6 abort - cause abnormal process termination
7
9 #include <stdlib.h>
10
11 void abort(void);
12
14 The abort() first unblocks the SIGABRT signal, and then raises that
15 signal for the calling process. This results in the abnormal termina‐
16 tion of the process unless the SIGABRT signal is caught and the signal
17 handler does not return (see longjmp(3)).
18
19 If the abort() function causes process termination, all open streams
20 are closed and flushed.
21
22 If the SIGABRT signal is ignored, or caught by a handler that returns,
23 the abort() function will still terminate the process. It does this by
24 restoring the default disposition for SIGABRT and then raising the sig‐
25 nal for a second time.
26
28 The abort() function never returns.
29
31 SVr4, POSIX.1-2001, 4.3BSD, C89, C99.
32
34 gdb(1), sigaction(2), exit(3), longjmp(3), raise(3)
35
37 This page is part of release 3.22 of the Linux man-pages project. A
38 description of the project, and information about reporting bugs, can
39 be found at http://www.kernel.org/doc/man-pages/.
40
41
42
43GNU 2007-12-15 ABORT(3)