Penguin
Annotated edit history of _exit(2) version 2, including all changes. View license author blame.
Rev Author # Line
1 perry 1 _EXIT
2 !!!_EXIT
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 CONFORMING TO
8 NOTES
9 SEE ALSO
10 ----
11 !!NAME
12
13
14 _exit - terminate the current process
15 !!SYNOPSIS
16
17
18 __#include __
19
20
21 __void _exit(int__ ''status''__);__
22 !!DESCRIPTION
23
24
25 ___exit__ terminates the calling process immediately. Any
26 open file descriptors belonging to the process are closed;
27 any children of the process are inherited by process 1,
28 init, and the process's parent is sent a __SIGCHLD__
29 signal.
30
31
32 ''status'' is returned to the parent process as the
33 process's exit status, and can be collected using one of the
34 __wait__ family of calls.
35 !!RETURN VALUE
36
37
38 ___exit__ never returns.
39 !!CONFORMING TO
40
41
42 SVr4, SVID, POSIX, X/OPEN, BSD 4.3
43 !!NOTES
44
45
46 ___exit__ does not call any functions registered with the
47 ANSI C __atexit__ function and does not flush standard
48 I/O buffers. To do these things, use
49 exit(3).
50 !!SEE ALSO
51
52
53 fork(2), execve(2), waitpid(2),
2 perry 54 wait4(2), kill(2), wait(2),
1 perry 55 exit(3)
56 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.