Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Mar 2001 16:46:00 -0700
From:      Drew Eckhardt <drew@PoohSticks.ORG>
To:        Matthew Luckie <mjl@SDSC.EDU>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: atexit 
Message-ID:  <200103092346.f29Nk0n04208@chopper.Poohsticks.ORG>
In-Reply-To: Your message of "Fri, 09 Mar 2001 15:35:33 PST." <Pine.GSO.4.30.0103091531250.24402-100000@multivac.sdsc.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.GSO.4.30.0103091531250.24402-100000@multivac.sdsc.edu>, mjl@SD
SC.EDU writes:
>I take it that the cleanup function won't be called if the program dumps
>core, 

Right, unless you dump core by forking a child process and doing it in that
context.

>or if it is terminated with a kill(1) 

The function can never be called when some one does a kill -9, although 
you're free to catch other signals and shutdown gracefully.  

Terminating with a call to _exit() will also not invoke your function.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103092346.f29Nk0n04208>