abort - Generates a software signal to end the current process
Standard C Library (libc.so, libc.a)
void abort ( void );
Interfaces documented on this reference page conform to industry standards 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.
The abort() function sends a SIGABRT signal to the current process. This signal terminates the process unless both of the following conditions 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.
The abort() function is supported for multi-threaded applications.
Functions: exit(2), kill(2), sigaction(2)
Standards: standards(5) delim off