Add fsctl shutdown_check to see if we're currently shutting down

This commit is contained in:
Mathieu Rene committed 2010-06-29 23:03:10 -04:00
1 parent 13a5f4eee0
commit 6bd82d1fb4
3 files changed
+8 -1

No files matched your search

@@ -1563,6 +1563,9 @@ SWITCH_STANDARD_API(ctl_function)
} else if (!strcasecmp(argv[0], "save_history")) {
switch_core_session_ctl(SCSC_SAVE_HISTORY, NULL);
stream->write_function(stream, "+OK\n");
} else if (!strcasecmp(argv[0], "shutdown_check")) {
switch_core_session_ctl(SCSC_SHUTDOWN_CHECK, &arg);
stream->write_function(stream, arg ? "true" : "false");
} else if (!strcasecmp(argv[0], "shutdown")) {
switch_session_ctl_t command = SCSC_SHUTDOWN;
int x = 0;