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