Date: Wed, 28 Feb 2001 12:17:15 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Marc W <mwlist@lanfear.com> Cc: freebsd-hackers@FreeBSD.org Subject: RE: Generating Core Dump Programmatically Message-ID: <XFMail.010228121715.jhb@FreeBSD.org> In-Reply-To: <200102280314.TAA43386@akira.lanfear.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 28-Feb-01 Marc W wrote:
>
>
> I'm trying to ensure robust shutdown on my machine. Thus, I've
> installed signal handlers for a bunch of nasty looking signals. In my
> new handler, after all critical state is saved, I then call abort(3),
> and all seems to work well.
>
> EXCEPT -- some signals generate core files when left with the
> default behaviour. Is there some straightforward way to do this?
Hmm, perhaps make sure you have the default SIGSEGV handler installed after
your cleanup and do:
*(int *)NULL = 1;
or some such? Then again, the core dump you get may not be all that useful...
> thanks.
>
> marc.
--
John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
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?XFMail.010228121715.jhb>
