tevent: use DLIST_DEMOTE() before calling on fde handler after select() and poll()
commit8764ec80bbcba93e862c069766c00944e5187ed5
authorStefan Metzmacher <metze@samba.org>
Thu, 21 Feb 2013 14:44:30 +0000 (21 15:44 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 1 Mar 2013 20:00:06 +0000 (1 12:00 -0800)
tree7dc47b6e4ff2316a87596d075dd5fe5288cd4a1a
parentb31767bf27bafd3ae20ba3f26dd5001051b9f2b6
tevent: use DLIST_DEMOTE() before calling on fde handler after select() and poll()

This makes sure we don't preferr events which are at the beginning
of the list.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/tevent/tevent_poll.c
lib/tevent/tevent_select.c