How to generate a core upon exit?

B

Brent Nye

exit(0) or exit(1) or exit(-1) will not produce a core in HP-UX

I am trying to exit with a core dump inside of a new_handler function, it does
not core dump.

Any suggestions?

Thanks,

Brent
 
R

Rolf Magnus

Brent said:
exit(0) or exit(1) or exit(-1) will not produce a core in HP-UX

I am trying to exit with a core dump inside of a new_handler function,
it does not core dump.

Any suggestions?

This question is off-topic here, since standard C++ (which is the only
topic of this newsgroup) doesn't specify what a "core" is.

Having that said, you may take look at the abort() function, which at
least under Linux dumps core by default.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top