on_exit.3: Note that same function may be registered multiple times

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2008-12-05 10:57:07 -05:00
parent 22a33e86af
commit 6a275cde4d
1 changed files with 4 additions and 1 deletions

View File

@ -26,7 +26,7 @@
.\" 386BSD man pages
.\" Modified 1993-04-02, David Metcalfe
.\" Modified 1993-07-25, Rik Faith (faith@cs.unc.edu)
.TH ON_EXIT 3 2007-07-26 "GNU" "Linux Programmer's Manual"
.TH ON_EXIT 3 2008-12-05 "GNU" "Linux Programmer's Manual"
.SH NAME
on_exit \- register a function to be called at normal process termination
.SH SYNOPSIS
@ -54,6 +54,9 @@ The \fIfunction\fP is passed the argument to
.BR exit (3)
and the \fIarg\fP argument from
.BR on_exit ().
The same function may be registered multiple times:
it is called once for each registration.
.SH "RETURN VALUE"
The
.BR on_exit ()