summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-03-30 20:55:20 +0000
committerBenny Prijono <bennylp@teluu.com>2006-03-30 20:55:20 +0000
commit7852452684372833f0267467b214830b7545be74 (patch)
treef8ba577cdffa9f9c0444f66e864a0cb15de11f5f
parent7237d05a6be9697d0d8cc380d932d838c669b52a (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-xconfigure3
-rw-r--r--pjsip/src/pjsua-lib/pjsua_core.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/configure b/configure
index ec0a8720..e947ef4b 100755
--- a/configure
+++ b/configure
@@ -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);
}