From 0d6349f14cbe6d2481273de62168a9008e80dc9c Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Sat, 4 Aug 2012 18:32:04 +0000 Subject: [PATCH] and for the interesting part: multiple poller threads --- daemon/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/main.c b/daemon/main.c index bbf913da1..075159997 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -441,6 +441,9 @@ int main(int argc, char **argv) { thread_create_detach(sighandler, NULL); thread_create_detach(timer_loop, ctx.p); thread_create_detach(poller_loop, ctx.p); + thread_create_detach(poller_loop, ctx.p); + thread_create_detach(poller_loop, ctx.p); + thread_create_detach(poller_loop, ctx.p); while (!global_shutdown) { usleep(100000);