void _exit(int status);
_exit()closes any open file descriptors or handles.
If the parent process of the calling process is executing a
wait()or waitpid(), _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()or waitpid()function, _exit()saves the exit status code for return to the parent process whenever the parent process executes an appropriate subsequent wait()or waitpid().
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.
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
PTC MKS Toolkit 10.1 Documentation Build 15.