diff options
Diffstat (limited to 'man2/_exit.2')
-rw-r--r-- | man2/_exit.2 | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/man2/_exit.2 b/man2/_exit.2 index 08854a073..fca98e1df 100644 --- a/man2/_exit.2 +++ b/man2/_exit.2 @@ -25,7 +25,7 @@ Standard C library .P .RS -4 Feature Test Macro Requirements for glibc (see -.BR feature_test_macros (7)): +.MR feature_test_macros 7 ): .RE .P .BR _Exit (): @@ -37,9 +37,9 @@ Feature Test Macro Requirements for glibc (see terminates the calling process "immediately". Any open file descriptors belonging to the process are closed. Any children of the process are inherited by -.BR init (1) +.MR init 1 (or by the nearest "subreaper" process as defined through the use of the -.BR prctl (2) +.MR prctl 2 .B PR_SET_CHILD_SUBREAPER operation). The process's parent is sent a @@ -50,7 +50,7 @@ The value .I "status & 0xFF" is returned to the parent process as the process's exit status, and can be collected by the parent using one of the -.BR wait (2) +.MR wait 2 family of calls. .P The function @@ -74,19 +74,19 @@ was introduced by C99. .SH NOTES For a discussion on the effects of an exit, the transmission of exit status, zombie processes, signals sent, and so on, see -.BR exit (3). +.MR exit 3 . .P The function .BR _exit () is like -.BR exit (3), +.MR exit 3 , but does not call any functions registered with -.BR atexit (3) +.MR atexit 3 or -.BR on_exit (3). +.MR on_exit 3 . Open -.BR stdio (3) +.MR stdio 3 streams are not flushed. On the other hand, .BR _exit () @@ -94,7 +94,7 @@ does close open file descriptors, and this may cause an unknown delay, waiting for pending output to finish. If the delay is undesired, it may be useful to call functions like -.BR tcflush (3) +.MR tcflush 3 before calling .BR _exit (). Whether any pending I/O is canceled, and which pending I/O may be @@ -122,17 +122,17 @@ Up to glibc 2.3, the .BR _exit () wrapper function invoked the kernel system call of the same name. Since glibc 2.3, the wrapper function invokes -.BR exit_group (2), +.MR exit_group 2 , in order to terminate all of the threads in a process. .SH SEE ALSO -.BR execve (2), -.BR exit_group (2), -.BR fork (2), -.BR kill (2), -.BR wait (2), -.BR wait4 (2), -.BR waitpid (2), -.BR atexit (3), -.BR exit (3), -.BR on_exit (3), -.BR termios (3) +.MR execve 2 , +.MR exit_group 2 , +.MR fork 2 , +.MR kill 2 , +.MR wait 2 , +.MR wait4 2 , +.MR waitpid 2 , +.MR atexit 3 , +.MR exit 3 , +.MR on_exit 3 , +.MR termios 3 |