From 058b0118a52061ad57694c01fc8763b22b789c4d Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 3 Jan 2005 06:40:20 +0000 Subject: Some man pages. --- man/man3/exits.3 | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'man/man3/exits.3') diff --git a/man/man3/exits.3 b/man/man3/exits.3 index 2591ff11..95e2b935 100644 --- a/man/man3/exits.3 +++ b/man/man3/exits.3 @@ -22,7 +22,10 @@ void atexitdont(void(*)(void)) .I Exits is the conventional way to terminate a process. .I _Exits -is the underlying system call. +also terminates a process but does not call the registered +.I atexit +handlers +.RI ( q.v. ). They can never return. .PP @@ -75,7 +78,18 @@ returns 0 if that limit has been reached. .I Atexitdont cancels a previous registration of an exit function. .SH SOURCE -.B /usr/local/plan9/src/libc/port/atexit.c +.B /usr/local/plan9/src/lib9/atexit.c +.br +.B /usr/local/plan9/src/lib9/_exits.c .SH "SEE ALSO" -.IR fork (3), +.IR fork (2), .IR wait (3) +.SH BUGS +Because of limitations of Unix, the exit status of a +process can only be an 8-bit integer. +Exit status 0 is used for empty exit messages, and 1 for +non-empty messages. +.PP +Exit codes 97 through 99 are used by the thread library to signal +internal synchronization errors between the main program +and a proxy process that implements backgrounding. -- cgit v1.2.3