summaryrefslogtreecommitdiff
path: root/source4/lib/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/events.c')
-rw-r--r--source4/lib/events.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/lib/events.c b/source4/lib/events.c
index f95028b731..00d32043f7 100644
--- a/source4/lib/events.c
+++ b/source4/lib/events.c
@@ -317,7 +317,13 @@ int event_loop_wait(struct event_context *ev)
}
- selrtn = sys_select(ev->maxfd+1, &r_fds, &w_fds, NULL, &tval);
+ /* TODO:
+
+ we don't use sys_select() as it isn't thread
+ safe. We need to replace the magic pipe handling in
+ sys_select() with something in the events
+ structure - for now just use select() */
+ selrtn = select(ev->maxfd+1, &r_fds, &w_fds, NULL, &tval);
t = time(NULL);