EXIT(2) COMMAND REFERENCE EXIT(2)
NAME
_exit - terminate a process
SYNOPSIS
_exit(status)
int status;
DESCRIPTION
The command _exit terminates a process with the following
consequences:
all descriptors open in the calling process are closed;
if the parent process of the calling process is
executing a wait or is interested in the SIGCHLD
signal, then it is notified of the calling process's
termination and the low-order eight bits of status are
made available to it; see wait(2).
The parent process ID of all the calling process's
existing child processes are also set to 1; this means
that the initialization process (see intro(2)) inherits
each of these processes as well.
Most C language programs call the library routine exit(3c)
which performs cleanup actions in the standard I/O library
before calling _exit.
RETURN VALUE
This call never returns.
SEE ALSO
fork(2), wait(2), and exit(3c).
Printed 4/6/89 1
%%index%%
na:240,79;
sy:319,356;
de:675,1108;
rv:1783,154;
se:1937,168;
%%index%%000000000095