Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Aug 2000 16:09:36 +0200
From:      Frank Nobis <fn@radio-do.de>
To:        Nicolas Leonard <nicolas.leonard@animaths.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: How to generate a core dump explicily
Message-ID:  <20000808160936.A33231@radio-do.de>
In-Reply-To: <00f101c00140$2a4b5a50$0f0210ac@masa.com>
References:  <00f101c00140$2a4b5a50$0f0210ac@masa.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Tue, Aug 08, 2000 at 03:54:26PM +0200, Nicolas Leonard wrote:
> Hi, 
> 
> I would like to generate a core dump 'explicitly'  in
> my program. How can that be done ?

Send yourself a signal that creates a core dump. For example SIGQUIT
would do the job. This asumes that you have not hanged the default
behaviour of the signals you are willing to receive in your program.
man signal, kill, getpid are  your friends.

kill(getpid(),SIGQUIT) should be ok.

Regards,
	Frank

-- 
~/.signature not found: wellknown error 42


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?20000808160936.A33231>