From 374b9a8f7b73405c49f98597ef06b8ed19ef1184 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 5 Dec 2008 11:06:16 -0500 Subject: [PATCH] atexit.3: atexit() and on_exit(3) register functions on the same list Signed-off-by: Michael Kerrisk --- man3/atexit.3 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/man3/atexit.3 b/man3/atexit.3 index 68b9f0fe6..e4fd77416 100644 --- a/man3/atexit.3 +++ b/man3/atexit.3 @@ -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