Content-type: text/html Man page of abort

abort

Section: C Library Functions (3)
Index Return to Main Contents
 

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 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.  

DESCRIPTION

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.  

NOTES

The abort() function is supported for multi-threaded applications.  

RELATED INFORMATION

Functions: exit(2), kill(2), sigaction(2)

Standards: standards(5) delim off


 

Index

NAME
LIBRARY
SYNOPSIS
STANDARDS
DESCRIPTION
NOTES
RELATED INFORMATION

This document was created by man2html, using the manual pages.
Time: 02:42:26 GMT, October 02, 2010