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>
Fri, 1 Mar 2013 17:51:53 +0000 (18:51 +0100)
commitaa79dba91d730b7a832fec78c0d58b5e39b34996
treeeaac27f865324216d79654bd224f27118840d959
parent194876047bce2d24e8b2ae481baf21434aab11e5
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