about summary refs log tree commit homepage
path: root/queue_loop.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-04-21 02:03:46 +0000
committerEric Wong <normalperson@yhbt.net>2012-04-21 04:44:40 +0000
commita2a1e29d2d9f10b8ded99562240cf625f4323b0a (patch)
treefe4de43edb400aa1d4bcf4db9696895ea8f6e89a /queue_loop.c
parent0fbc6f587e5ab3c8b587fd6a2370e31cefc5918f (diff)
downloadcmogstored-a2a1e29d2d9f10b8ded99562240cf625f4323b0a.tar.gz
Allowing cancellation for a zero-time wait on epoll/kqueue
can potentially leave a descriptor hanging around forever
from a dead thread.
Diffstat (limited to 'queue_loop.c')
-rw-r--r--queue_loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/queue_loop.c b/queue_loop.c
index 0ed144e..5f73e75 100644
--- a/queue_loop.c
+++ b/queue_loop.c
@@ -83,7 +83,7 @@ void * mog_queue_loop(void *arg)
                  * handle them as much as possible and bounce them
                  * into the active queue...
                  */
-                while ((mfd = cancellable_queue_wait(q, 0))) {
+                while ((mfd = mog_idleq_wait(q, 0))) {
 
                         /*
                          * We got a more important client, push active_mfd