mirror of https://github.com/mkerrisk/man-pages
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:
parent
84fc5566f5
commit
374b9a8f7b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue