From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA19597; Mon, 18 Feb 2002 14:23:09 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA19246 for ; Mon, 18 Feb 2002 14:23:07 +0100 (MET) Received: from relay-4v.club-internet.fr (relay-4v.club-internet.fr [194.158.96.115]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g1IDN7D23542 for ; Mon, 18 Feb 2002 14:23:07 +0100 (MET) Received: from warp (lns05v-8-77.w.club-internet.fr [212.194.91.77]) by relay-4v.club-internet.fr (Postfix) with SMTP id 0C844168A; Mon, 18 Feb 2002 14:23:06 +0100 (CET) Message-ID: <003c01c1b87f$37945570$3c00a8c0@warp> From: "Warp" To: "Hendrik Tews" , References: <15472.64652.573933.952197@gargle.gargle.HOWL> Subject: Re: [Caml-list] at_exit functions not called during exit Date: Mon, 18 Feb 2002 14:21:47 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > I noticed that functions registered with Pervasives.at_exit are > not called when a C-library function calls exit. Is this a bug or > a feature? If you call the exit() C function in your C-library, it'll exit regardless you're using OCaml or any other feature. BTW, Pervasives.at_exit seems to be only called when an unhandled exception reach the top-level. Warp ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr