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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to