… | |
… | |
473 | LOG (llevDebug, "cleanup done.\n"); |
473 | LOG (llevDebug, "cleanup done.\n"); |
474 | |
474 | |
475 | if (make_core) |
475 | if (make_core) |
476 | { |
476 | { |
477 | cleanup_inform (cause, make_core); |
477 | cleanup_inform (cause, make_core); |
|
|
478 | cfperl_cleanup (make_core); |
478 | _exit (1); |
479 | _exit (1); |
479 | } |
480 | } |
480 | else |
481 | else |
481 | { |
482 | { |
482 | new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "Maps and players successfully saved, exiting.\n"); |
483 | new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "Maps and players successfully saved, exiting.\n"); |
483 | new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "And again: " CLEANUP_MESSAGE "\n"); |
484 | new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "And again: " CLEANUP_MESSAGE "\n"); |
484 | flush_sockets (); |
485 | flush_sockets (); |
|
|
486 | cfperl_cleanup (make_core); |
485 | _exit (0); |
487 | _exit (0); |
486 | } |
488 | } |
487 | } |
489 | } |
488 | |
490 | |
489 | int |
491 | int |