Research V7 development
[unix-history] / usr / man / man2 / exit.2
CommitLineData
6de44978
KT
1.TH EXIT 2
2.SH NAME
3exit \- terminate process
4.SH SYNOPSIS
5.B exit(status)
6.br
7.B int status;
8.PP
9.B _exit(status)
10.br
11.B int status;
12.SH DESCRIPTION
13.I Exit
14is the normal means of terminating a process.
15.I Exit
16closes all the process's files and notifies the parent process
17if it is executing a
18.IR wait .
19The low-order 8 bits of
20.I status
21are available to the parent process.
22.PP
23This call can never return.
24.PP
25The C function
26.I exit
27may cause cleanup actions before the
28final `sys exit'.
29The function
30.I _exit
31circumvents all cleanup.
32.SH "SEE ALSO"
33wait(2)
34.SH ASSEMBLER
35(exit = 1.)
36.br
37(status in r0)
38.br
39.B sys exit