Rev | Author | # | Line |
---|---|---|---|
1 | perry | 1 | !!NAME |
2 | |||
3 | _exit - terminate the current process | ||
3 | PerryLorier | 4 | |
1 | perry | 5 | !!SYNOPSIS |
3 | PerryLorier | 6 | __#include <unistd.h>__ |
1 | perry | 7 | |
8 | |||
3 | PerryLorier | 9 | __void _exit(int__ ''status''__);__ |
1 | perry | 10 | |
11 | !!DESCRIPTION | ||
12 | |||
3 | PerryLorier | 13 | ___exit__ terminates the calling process immediately. Any open file descriptors belonging to the process are closed; any children of the process are inherited by process 1, init, and the process's parent is sent a [SIGCHLD] signal. |
1 | perry | 14 | |
3 | PerryLorier | 15 | ''status'' is returned to the parent process as the process's exit status, and can be collected using one of the __wait__ family of calls. |
1 | perry | 16 | |
17 | !!RETURN VALUE | ||
18 | |||
3 | PerryLorier | 19 | ___exit__ never returns. |
1 | perry | 20 | |
21 | !!CONFORMING TO | ||
3 | PerryLorier | 22 | SVr4, SVID, POSIX, X/OPEN, BSD 4.3 |
1 | perry | 23 | |
24 | !!NOTES | ||
3 | PerryLorier | 25 | ___exit__ does not call any functions registered with the ANSI C __atexit__ function and does not flush standard I/O buffers. To do these things, use exit(3). |
1 | perry | 26 | |
27 | !!SEE ALSO | ||
28 | |||
3 | PerryLorier | 29 | fork(2), execve(2), waitpid(2), wait4(2), kill(2), wait(2), exit(3) |
lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 7 times)