diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-12-04 09:52:14 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-12-04 09:52:14 +0000 |
commit | 2e5ae6f0650962db86fcdb1290f9a7c8b07b1410 (patch) | |
tree | 0bb87301b126dc2a0da21335a8de9ea8dc27ba28 /source4/lib/events.c | |
parent | 926240428c0646aabb13539745940b61a7cf44a9 (diff) | |
download | samba-2e5ae6f0650962db86fcdb1290f9a7c8b07b1410.tar.gz samba-2e5ae6f0650962db86fcdb1290f9a7c8b07b1410.tar.bz2 samba-2e5ae6f0650962db86fcdb1290f9a7c8b07b1410.zip |
* added a debug thread id hook from jim myers
* change to select() from sys_select() in events.c, as sys_select() is
not thread safe. We need a new unified signal handling scheme for
Samba4, but for now just use select()
(This used to be commit 126fcd4a76ac029ee4f662ed41b84c791406c324)
Diffstat (limited to 'source4/lib/events.c')
-rw-r--r-- | source4/lib/events.c | 8 |
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); |