diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-03-30 20:55:20 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-03-30 20:55:20 +0000 |
commit | 7852452684372833f0267467b214830b7545be74 (patch) | |
tree | f8ba577cdffa9f9c0444f66e864a0cb15de11f5f | |
parent | 7237d05a6be9697d0d8cc380d932d838c669b52a (diff) |
Removed continuous warnings in handle_events in pjsua_core, and temporarily set default ioqueue in Linux to use select instead of epoll
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@369 74dad513-b988-da41-8d7b-12977e46ad98
-rwxr-xr-x | configure | 3 | ||||
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_core.c | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -41,7 +41,8 @@ elif echo $SYSTEM | grep -i linux > /dev/null; then elif echo $KERNEL_VER | grep '^2\.0' > /dev/null; then LINUX_EPOLL=select else - LINUX_POLL=epoll +# LINUX_POLL=epoll + LINUX_POLL=select fi elif echo $SYSTEM | grep -i mingw > /dev/null; then OS_NAME=win32 diff --git a/pjsip/src/pjsua-lib/pjsua_core.c b/pjsip/src/pjsua-lib/pjsua_core.c index 1ff4fac2..496c3645 100644 --- a/pjsip/src/pjsua-lib/pjsua_core.c +++ b/pjsip/src/pjsua-lib/pjsua_core.c @@ -454,7 +454,7 @@ static int PJ_THREAD_FUNC pjsua_poll(void *arg) pj_status_t status; status = pjsip_endpt_handle_events (pjsua.endpt, &timeout); - if (status != last_err) { + if (status != PJ_SUCCESS && status != last_err) { last_err = status; pjsua_perror(THIS_FILE, "handle_events() returned error", status); } |