The GNU C Library - Termination Internals

Node: Termination Internals Prev: Aborting a Program Up: Program Termination

Termination Internals

The _exit function is the primitive used for process termination by exit . It is declared in the header file `unistd.h'.

Function void _exit (int status)
The _exit function is the primitive for causing a process to terminate with status status. Calling this function does not execute cleanup functions registered with atexit or on_exit .

When a process terminates for any reason---either by an explicit termination call, or termination as a result of a signal---the following things happen:


Up: Program Termination