From owner-freebsd-hackers Tue Aug 8 7:41: 8 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from animaths.com (AMontsouris-101-2-95.abo.wanadoo.fr [193.251.54.95]) by hub.freebsd.org (Postfix) with SMTP id 5207337B98A for ; Tue, 8 Aug 2000 07:41:02 -0700 (PDT) (envelope-from nicolas.leonard@animaths.com) Received: (qmail 19356 invoked by uid 31); 8 Aug 2000 14:44:01 -0000 Received: from nicolas.leonard@animaths.com by ns.masa.com with scan4virus-0.53 (uvscan: v4.0.50/v4088. . Clean. Processed in 0.223277 secs); 08/08/2000 16:44:01 Received: from nld.masa.com (HELO nld) (172.16.2.15) by ns.masa.com with SMTP; 8 Aug 2000 14:44:01 -0000 Message-ID: <011301c00146$c709f170$0f0210ac@masa.com> From: "Nicolas Leonard" To: "Samuel Tardieu" Cc: References: <00f101c00140$2a4b5a50$0f0210ac@masa.com> <2000-08-08-15-56-50+trackit+sam@inf.enst.fr> Subject: Re: How to generate a core dump explicily Date: Tue, 8 Aug 2000 16:41:46 +0200 Organization: =?iso-8859-1?Q?Math=E9matiques_Appliqu=E9es_SA?= MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sorry, I wasn't precise enough . In fact, I caught the SIGABRT signal (and the others signals which are ending the program) and I'm doing some ending stuff, and after that, I would like to dump a core file. I could remove the handler of SIGABRT after my ending suff done, and kill myself another time, but I would like to know if it's possible to dump the core explicitly. (With a dumpcore() function or whatever ) ----- Message d'origine ----- De : Samuel Tardieu À : Nicolas Leonard Cc : Envoyé : mardi 8 août 2000 15:56 Objet : Re: How to generate a core dump explicily > On 8/08, Nicolas Leonard wrote: > > | I would like to generate a core dump 'explicitly' in > | my program. How can that be done ? > > Use abort(3). > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message