1EXIT(2)                       System Calls Manual                      EXIT(2)
2
3
4

NAME

6       _exit - terminate a process
7

SYNOPSIS

9       _exit(status)
10       int status;
11

DESCRIPTION

13       _exit terminates a process with the following consequences:
14
15       All  of  the  descriptors open in the calling process are closed.  This
16       may entail delays, for example, waiting for output to drain; a  process
17       in this state may not be killed, as it is already dying.
18
19       If  the parent process of the calling process is executing a wait or is
20       interested in the SIGCHLD signal, then it is notified  of  the  calling
21       process's  termination  and the low-order eight bits of status are made
22       available to it; see wait(2).
23
24       The parent process ID of all of the calling  process's  existing  child
25       processes  are  also  set  to  1.   This  means that the initialization
26       process (see intro(2)) inherits each of these processes as  well.   Any
27       stopped children are restarted with a hangup signal (SIGHUP).
28
29       Most  C  programs  call  the  library  routine  exit(3), which performs
30       cleanup actions in the standard I/O library before calling _exit.
31

RETURN VALUE

33       This call never returns.
34

SEE ALSO

36       fork(2), sigvec(2), wait(2), exit(3)
37
38
39
404th Berkeley Distribution        May 22, 1986                          EXIT(2)
Impressum