mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
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
This commit is contained in:
parent
0bbe7334d6
commit
ad10289ebc
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user