mirror of https://github.com/mkerrisk/man-pages
atexit.3: Terminating registered function using longjmp() is undefined
According to POSIX.1, using longjmp() to terminate execution of a function registered using atexit() produces undefined results. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
7c298e468d
commit
84fc5566f5
|
@ -28,7 +28,7 @@
|
|||
.\" Modified 1993-07-24, Rik Faith (faith@cs.unc.edu)
|
||||
.\" Modified 2003-10-25, Walter Harms
|
||||
.\"
|
||||
.TH ATEXIT 3 2003-11-01 "Linux" "Linux Programmer's Manual"
|
||||
.TH ATEXIT 3 2008-12-03 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
atexit \- register a function to be called at normal process termination
|
||||
.SH SYNOPSIS
|
||||
|
@ -79,6 +79,7 @@ POSIX.1-2001 says that the result is undefined if
|
|||
.BR longjmp (3)
|
||||
is used to terminate execution of one of the functions registered
|
||||
.BR atexit ().
|
||||
.\" In glibc, things seem to be handled okay
|
||||
.SS "Linux Notes"
|
||||
Since glibc 2.2.3,
|
||||
.BR atexit ()
|
||||
|
|
Loading…
Reference in New Issue