atexit.3: atexit() and on_exit(3) register functions on the same list

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2008-12-05 11:06:16 -05:00
parent 84fc5566f5
commit 374b9a8f7b
1 changed files with 9 additions and 0 deletions

View File

@ -75,6 +75,15 @@ Functions registered using
are not called if a process terminates abnormally because
of the delivery of a signal.
The
.BR atexit ()
and
.BR on_exit (3)
functions register functions on the same list:
at normal process termination,
the registered functions are invoked in reverse order
of their registration by these two functions.
POSIX.1-2001 says that the result is undefined if
.BR longjmp (3)
is used to terminate execution of one of the functions registered