tevent: Start to fix the epoll backend to support 2 fd events on the same fd correctly.
authorJeremy Allison <jra@samba.org>
Thu, 14 Feb 2013 21:50:56 +0000 (13:50 -0800)
committerStefan Metzmacher <metze@samba.org>
Fri, 1 Mar 2013 18:54:43 +0000 (19:54 +0100)
commit8ffe56ba491603a480b2c4ff1cf3c68ee697c5e8
tree1ba832c2a0ecc9387e24317c65d60a9e483440e6
parent7f39a00a32a1cff06e6085b0fc737ad0e22e23ba
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