git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5046 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-04-30 23:56:27 +00:00
parent 861a585540
commit 5d09c438ac
2 changed files with 9 additions and 2 deletions

View File

@ -184,7 +184,7 @@ static char prompt_str[512] = "";
char * prompt(EditLine *e) {
if (switch_strlen_zero(prompt_str)) {
gethostname(hostname, sizeof(hostname));
snprintf(prompt_str, sizeof(prompt_str), "\nfreeswitch@%s> ", hostname);
snprintf(prompt_str, sizeof(prompt_str), "freeswitch@%s> ", hostname);
}
return prompt_str;
@ -220,7 +220,15 @@ SWITCH_DECLARE(void) switch_console_loop(void)
history(myhistory, &ev, H_LOAD, hfile);
while (running) {
uint32_t arg;
switch_core_session_ctl(SCSC_CHECK_RUNNING, &arg);
if (!arg) {
break;
}
line = el_gets(el, &count);
if (count > 1) {
if (!switch_strlen_zero(line)) {
char *cmd = strdup(line);

View File

@ -613,7 +613,6 @@ SWITCH_DECLARE(switch_time_t) switch_core_uptime(void)
SWITCH_DECLARE(int32_t) switch_core_session_ctl(switch_session_ctl_t cmd, uint32_t * val)
{
if (runtime.shutting_down) {
return -1;
}