tevent: Start to fix the epoll backend to support 2 fd events on the same fd correctly.
commite4b496cc096e1caabdaee646c162f0ba8cfac39c
authorJeremy Allison <jra@samba.org>
Thu, 14 Feb 2013 21:50:56 +0000 (14 13:50 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 1 Mar 2013 20:00:59 +0000 (1 12:00 -0800)
tree1ba832c2a0ecc9387e24317c65d60a9e483440e6
parent7ef688c1dd797b1d108afe02c4b803bab01988ab
tevent: Start to fix the epoll backend to support 2 fd events on the same fd correctly.

Add a utility function epoll_add_multiplex_fd() and
a new flag EPOLL_ADDITIONAL_FD_FLAG_HAS_MPX.

This will be called by epoll_add_event() to merge two
fde events with the same file descriptor.

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