diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-01-24 08:47:12 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-01-31 16:59:44 +0100 |
commit | ad10289ebcc78ab62ec86abb29f81eb769d17f4e (patch) | |
tree | cfc8e9b81531b3b425a8c4f76b737c4cb28af471 /source3/lib/events.c | |
parent | 0bbe7334d69bcaa476f0741e0bd9685b023a4208 (diff) | |
download | samba-ad10289ebcc78ab62ec86abb29f81eb769d17f4e.tar.gz samba-ad10289ebcc78ab62ec86abb29f81eb769d17f4e.tar.xz 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/lib/events.c')
-rw-r--r-- | source3/lib/events.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/events.c b/source3/lib/events.c index 2ac4cc00ed4..07a270c1e74 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; } |