save history when stoping now

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16312 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2010-01-14 21:00:32 +00:00
parent 99b45eb1fb
commit f4a50a5e91
5 changed files with 29 additions and 1 deletions

View File

@@ -1633,7 +1633,16 @@ SWITCH_DECLARE(int32_t) switch_core_session_ctl(switch_session_ctl_t cmd, int32_
case SCSC_CANCEL_SHUTDOWN:
switch_clear_flag((&runtime), SCF_SHUTDOWN_REQUESTED);
break;
case SCSC_SAVE_HISTORY:
switch_console_save_history();
break;
case SCSC_CRASH:
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Declinatio Mortuus Obfirmo!\n");
switch_console_save_history();
abort();
break;
case SCSC_SHUTDOWN_NOW:
switch_console_save_history();
exit(0);
break;
case SCSC_SHUTDOWN_ELEGANT: