atexit.3: The same exit handler may be registered multiple times

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2008-12-05 11:08:38 -05:00
parent 41bf770ca3
commit ee394477fa
1 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,9 @@ called at normal process termination, either via
or via return from the program's \fImain\fP().
Functions so registered are called in
the reverse order of their registration; no arguments are passed.
The same function may be registered multiple times:
it is called once for each registration.
.LP
POSIX.1-2001 requires that an implementation allow at least
.B ATEXIT_MAX