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 17:51:56 +0000 (18:51 +0100)
commit865a239fe0528dddb907aa136f49c4e80b626097
tree2224dbf7d78990c7f0e19d73ec665547463ee33b
parent44a2866a95a2a7a66198e6465e751c0e0fc1f724
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