abort(3)abort(3)NAMEabort - Generates a software signal to end the current process
SYNOPSIS
#include <stdlib.h>
void abort(
void );
LIBRARY
Standard C Library (libc)
STANDARDS
Interfaces documented on this reference page conform to industry stan‐
dards as follows:
abort(): ISO C, POSIX.1, XPG4, XPG4-UNIX
Refer to the standards(5) reference page for more information about
industry standards and associated tags.
DESCRIPTION
The abort() function sends a SIGABRT signal to the current process.
This signal terminates the process unless both of the following condi‐
tions are true: (1) signal SIGABRT is being caught, and (2) the signal
handler does not do a normal return, for example, if it does a longjmp.
If abort() causes the process to terminate abnormally and the current
directory is writable, the system creates a core file in the current
working directory.
If the call to the abort() function terminates the process, each open
stream and message catalog descriptor is affected as if the fclose()
function was called. The abort() function then terminates the process
with the same result as the _exit() function, with the exception of the
status value made available to the wait() or waitpid() function. These
functions receive the status value of the process terminated by the
SIGABRT signal. The abort() function overrides blocking or ignoring of
the SIGABRT signal.
NOTES
The abort() function is supported for multi-threaded applications.
SEE ALSO
Functions: exit(2), kill(2), sigaction(2)
Standards: standards(5)abort(3)