On  8/08, Nicolas Leonard wrote:
| 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 )

You better remove the handler of SIGABRT then call abort(), which will not
only send the SIGABRT again and dump a core but also flush all your buffers
(look at /usr/src/lib/libc/stdlib/abort.c).

But why don't you just use atexit(3) for registering your cleaning stuff,
and let SIGABRT with its default handling?



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to