From owner-freebsd-hackers Fri Mar 9 15:39:24 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from guild.plethora.net (guild.plethora.net [205.166.146.8]) by hub.freebsd.org (Postfix) with ESMTP id B31B737B718 for ; Fri, 9 Mar 2001 15:39:22 -0800 (PST) (envelope-from seebs@guild.plethora.net) Received: from guild.plethora.net (seebs@localhost.plethora.net [127.0.0.1]) by guild.plethora.net (8.10.1/8.10.1) with ESMTP id f29NdG227303 for ; Fri, 9 Mar 2001 17:39:17 -0600 (CST) Message-Id: <200103092339.f29NdG227303@guild.plethora.net> From: seebs@plethora.net (Peter Seebach) Reply-To: seebs@plethora.net (Peter Seebach) To: hackers@freebsd.org Subject: Re: atexit In-reply-to: Your message of "Fri, 09 Mar 2001 15:35:33 PST." Date: Fri, 09 Mar 2001 17:39:16 -0600 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message , 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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message