Commit | Line | Data |
---|---|---|
6de44978 KT |
1 | .TH EXIT 2 |
2 | .SH NAME | |
3 | exit \- 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 | |
14 | is the normal means of terminating a process. | |
15 | .I Exit | |
16 | closes all the process's files and notifies the parent process | |
17 | if it is executing a | |
18 | .IR wait . | |
19 | The low-order 8 bits of | |
20 | .I status | |
21 | are available to the parent process. | |
22 | .PP | |
23 | This call can never return. | |
24 | .PP | |
25 | The C function | |
26 | .I exit | |
27 | may cause cleanup actions before the | |
28 | final `sys exit'. | |
29 | The function | |
30 | .I _exit | |
31 | circumvents all cleanup. | |
32 | .SH "SEE ALSO" | |
33 | wait(2) | |
34 | .SH ASSEMBLER | |
35 | (exit = 1.) | |
36 | .br | |
37 | (status in r0) | |
38 | .br | |
39 | .B sys exit |