SYNOPSIS
#include <unistd.h>
void _exit(int status);
DESCRIPTION
The
-
_exit() closes any open file descriptors or handles. -
If the parent process of the calling process is executing a
wait() orwaitpid() ,_exit() notifies the parent that the calling process is to be terminated and the low-order 8 bits of status are made available to it. -
If the parent process of the calling process is not executing a
wait() orwaitpid() function,_exit() saves the exit status code for return to the parent process whenever the parent process executes an appropriate subsequentwait() orwaitpid() . -
Terminating a process does not directly terminate its children.
Sending a SIGHUP signal indirectly terminates
children in some circumstances.
_exit() assigns a new parent process ID (corresponding to an implementation-defined system process) to the children of a terminated process. - A SIGCHLD is sent to the calling process' parent process.
PARAMETERS
RETURN VALUES
Never returns.
CONFORMANCE
POSIX.1 (1996).
MULTITHREAD SAFETY LEVEL
Async-signal-safe.
PORTING ISSUES
None.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
close() ,sigaction() ,wait()
PTC MKS Toolkit 10.4 Documentation Build 39.