tevent: avoid any operation on epoll_ev after a epoll_panic()
authorStefan Metzmacher <metze@samba.org>
Fri, 15 Feb 2013 15:33:56 +0000 (16:33 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 26 Feb 2013 15:43:55 +0000 (16:43 +0100)
commit5f79a846d13272b6322ba34e66b55191eb5fee01
tree8e3a6a7dc291ab68a701ed39f084861a1dbd301d
parent1522d9fc0b43b787c609d7681f6d1eba9e5e8498
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>
lib/tevent/tevent_epoll.c