Manual Page Result
0
Command: abort | Section: 3 | Source: Digital UNIX | File: abort.3.gz
abort(3) Library Functions Manual abort(3)
NAME
abort - Generates a software signal to end the current process
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <stdlib.h>
void abort ( void );
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 in-
dustry 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.
RELATED INFORMATION
Functions: exit(2), kill(2), sigaction(2)
Standards: standards(5) delim off
abort(3)