提交 6cb6f501 authored 作者: Anthony Minessale's avatar Anthony Minessale

skip call to read where there is no data present

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14813 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 4780a3d3
...@@ -878,6 +878,14 @@ SWITCH_DECLARE(void) switch_console_loop(void) ...@@ -878,6 +878,14 @@ SWITCH_DECLARE(void) switch_console_loop(void)
break; break;
} }
if (FD_ISSET(fileno(stdin), &efds)) {
continue;
}
if (!FD_ISSET(fileno(stdin), &rfds)) {
activity = 0;
}
if (activity == 0) { if (activity == 0) {
fflush(stdout); fflush(stdout);
continue; continue;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论