fsctl add shutdown now for debugging

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16220 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2010-01-08 22:10:03 +00:00
parent 5e45ff07a3
commit 009fe09c3c
3 changed files with 7 additions and 1 deletions

View File

@ -1433,7 +1433,8 @@ typedef enum {
SCSC_CANCEL_SHUTDOWN,
SCSC_SEND_SIGHUP,
SCSC_DEBUG_LEVEL,
SCSC_FLUSH_DB_HANDLES
SCSC_FLUSH_DB_HANDLES,
SCSC_SHUTDOWN_NOW
} switch_session_ctl_t;
typedef enum {

View File

@ -1477,6 +1477,8 @@ SWITCH_STANDARD_API(ctl_function)
break;
} else if (!strcasecmp(argv[x], "elegant")) {
command = SCSC_SHUTDOWN_ELEGANT;
} else if (!strcasecmp(argv[x], "now")) {
command = SCSC_SHUTDOWN_NOW;
} else if (!strcasecmp(argv[x], "asap")) {
command = SCSC_SHUTDOWN_ASAP;
} else if (!strcasecmp(argv[x], "restart")) {

View File

@ -1610,6 +1610,9 @@ 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_SHUTDOWN_NOW:
exit(0);
break;
case SCSC_SHUTDOWN_ELEGANT:
case SCSC_SHUTDOWN_ASAP:
{