From owner-freebsd-hackers Fri Mar 9 15:46: 8 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from chopper.Poohsticks.ORG (chopper.poohsticks.org [63.227.60.73]) by hub.freebsd.org (Postfix) with ESMTP id 2AB5437B719 for ; Fri, 9 Mar 2001 15:46:06 -0800 (PST) (envelope-from drew@chopper.Poohsticks.ORG) Received: from chopper.Poohsticks.ORG (drew@localhost.poohsticks.org [127.0.0.1]) by chopper.Poohsticks.ORG (8.10.1/8.10.1) with ESMTP id f29Nk0n04208; Fri, 9 Mar 2001 16:46:00 -0700 Message-Id: <200103092346.f29Nk0n04208@chopper.Poohsticks.ORG> To: Matthew Luckie Cc: hackers@FreeBSD.ORG Subject: Re: atexit In-reply-to: Your message of "Fri, 09 Mar 2001 15:35:33 PST." MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4204.984181560.1@chopper.Poohsticks.ORG> Date: Fri, 09 Mar 2001 16:46:00 -0700 From: Drew Eckhardt Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message , 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