tevent: avoid any operation on epoll_ev after a epoll_panic()
commit73dabddbdce99c5bc19a4be814f88da581e6d372
authorStefan Metzmacher <metze@samba.org>
Fri, 15 Feb 2013 15:33:56 +0000 (15 16:33 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 1 Mar 2013 20:00:15 +0000 (1 12:00 -0800)
treeeaac27f865324216d79654bd224f27118840d959
parent2b05c9621784da8e5aa793cd2110dde768084968
tevent: avoid any operation on epoll_ev after a epoll_panic()

This calls TALLOC_FREE(ev->additional_data), which is epoll_ev
within epoll_panic() before calling the fallback handler.

In order to notice that a epoll_panic() happened, a caller can
register a pointer to a bool variable under epoll_ev->panic_state.

As epoll_check_reopen() can fail due to a epoll_panic(),
we need to force the replay flag if we have called any event handler.

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