aboutsummaryrefslogtreecommitdiff
path: root/man/man3/exits.3
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-03 06:40:20 +0000
committerrsc <devnull@localhost>2005-01-03 06:40:20 +0000
commit058b0118a52061ad57694c01fc8763b22b789c4d (patch)
tree6685f04dea5ed68edaa34998c976aed34c55fe94 /man/man3/exits.3
parent2600337aa704efbeba8201e88147a764b4fd2b90 (diff)
downloadplan9port-058b0118a52061ad57694c01fc8763b22b789c4d.tar.gz
plan9port-058b0118a52061ad57694c01fc8763b22b789c4d.tar.bz2
plan9port-058b0118a52061ad57694c01fc8763b22b789c4d.zip
Some man pages.
Diffstat (limited to 'man/man3/exits.3')
-rw-r--r--man/man3/exits.320
1 files changed, 17 insertions, 3 deletions
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.