summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-04-01 15:29:59 +0200
committerVolker Lendecke <vl@samba.org>2008-04-14 13:13:47 +0200
commitfe4930b7fae084b664eef2342cf1e4b6a3daf698 (patch)
tree852713e65287a8d29d479685b7b1ab7daed46c36 /source3/lib
parenta4c0812af0132476dfd542ca212304de898fa7c7 (diff)
downloadsamba-fe4930b7fae084b664eef2342cf1e4b6a3daf698.tar.gz
samba-fe4930b7fae084b664eef2342cf1e4b6a3daf698.tar.bz2
samba-fe4930b7fae084b664eef2342cf1e4b6a3daf698.zip
Enable multiple fd events on a single file descriptor
Now we can have multiple events listen on a single fd. The order in which they are called is naturally not defined, meaning that it is only deterministic if exactly one event is readable or writeable. (This used to be commit 61503f822b60f98dd1f7549707ec89b48e32caeb)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/events.c b/source3/lib/events.c
index f7bad9bcad..9decf213b4 100644
--- a/source3/lib/events.c
+++ b/source3/lib/events.c
@@ -292,7 +292,7 @@ bool run_events(struct event_context *event_ctx,
if (FD_ISSET(fde->fd, read_fds)) flags |= EVENT_FD_READ;
if (FD_ISSET(fde->fd, write_fds)) flags |= EVENT_FD_WRITE;
- if (flags) {
+ if (flags & fde->flags) {
fde->handler(event_ctx, fde, flags, fde->private_data);
fired = True;
}