… | |
… | |
466 | /* clean up everything before exiting */ |
466 | /* clean up everything before exiting */ |
467 | void |
467 | void |
468 | cleanup (const char *cause, bool make_core) |
468 | cleanup (const char *cause, bool make_core) |
469 | { |
469 | { |
470 | if (make_core) |
470 | if (make_core) |
471 | if (!fork ()) |
471 | fork_abort (cause); |
472 | abort (); |
|
|
473 | |
472 | |
474 | LOG (llevError, "cleanup cause: %s\n", cause); |
473 | LOG (llevError, "cleanup cause: %s\n", cause); |
475 | |
474 | |
476 | if (!make_core) |
475 | if (!make_core) |
477 | cleanup_inform (cause, make_core); |
476 | cleanup_inform (cause, make_core); |