By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,194 Members | 839 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,194 IT Pros & Developers. It's quick & easy.

How to generate a core upon exit?

P: n/a
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
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Brent Nye wrote:
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.

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.