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)
committerKarolin Seeger <kseeger@samba.org>
Wed, 6 Mar 2013 09:12:01 +0000 (10:12 +0100)
commit3e3909395feee2cd8d2656f6234a43d39f6080ee
tree02fe6d01ed38a3d62fb0deb60fcd37fe1f1f0dab
parent7723c1002072ebaeeab008499553b09971607a5e
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