summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-01-24 08:47:12 +0100
committerStefan Metzmacher <metze@samba.org>2011-01-31 16:59:44 +0100
commitad10289ebcc78ab62ec86abb29f81eb769d17f4e (patch)
treecfc8e9b81531b3b425a8c4f76b737c4cb28af471 /source3
parent0bbe7334d69bcaa476f0741e0bd9685b023a4208 (diff)
downloadsamba-ad10289ebcc78ab62ec86abb29f81eb769d17f4e.tar.gz
samba-ad10289ebcc78ab62ec86abb29f81eb769d17f4e.tar.bz2
samba-ad10289ebcc78ab62ec86abb29f81eb769d17f4e.zip
s3:lib/events: use DLIST_DEMOTE() for fd events
This makes sure that fd events doesn't dry out, because a fd with a lower number is busy. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Jan 31 16:59:44 CET 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/events.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/events.c b/source3/lib/events.c
index 2ac4cc00ed..07a270c1e7 100644
--- a/source3/lib/events.c
+++ b/source3/lib/events.c
@@ -127,6 +127,7 @@ bool run_events(struct tevent_context *ev,
if (FD_ISSET(fde->fd, write_fds)) flags |= EVENT_FD_WRITE;
if (flags & fde->flags) {
+ DLIST_DEMOTE(ev->fd_events, fde, struct tevent_fd);
fde->handler(ev, fde, flags, fde->private_data);
return true;
}