Setting exit status when creating core dump
Posted
by Zitrax
on Stack Overflow
See other posts from Stack Overflow
or by Zitrax
Published on 2010-04-09T13:38:34Z
Indexed on
2010/04/09
13:43 UTC
Read the original article
Hit count: 410
For example calling exit(100)
would exit the application with status 100, and calling raise(SIGABRT)
aborts the application with status 134 while creating a core dump. But what if I want the core dump with status 100 or any other arbitrary value. How can I do that ? I know there are several signals that triggers a core dump, but they seem to have fixed exit statuses.
© Stack Overflow or respective owner