In message <[EMAIL PROTECTED]>, Matthe
w Luckie writes:
>I'm wondering under what conditions a function specified with atexit()
>won't get called on FreeBSD when a program terminates.
"abnormal" termination.
>I take it that the cleanup function won't be called if the program dumps
>core, or if it is terminated with a kill(1) - or might it?
It shouldn't, in general, or if someone calls _exit(). If the program dies
from a signal, that's "abnormal" termination.
Note that some signals can be caught, and a program which catches them may
choose to exit cleanly, and may thus hit its atexit() registered functions.
-s
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message