提交 5d09c438 authored 作者: Anthony Minessale's avatar Anthony Minessale

update

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5046 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 861a5855
......@@ -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);
......
......@@ -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;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论