tevent: avoid any operation on epoll_ev after a epoll_panic()
commita70ea88a084f85d1daa485b78b2e5f2af12925bb
authorStefan Metzmacher <metze@samba.org>
Fri, 15 Feb 2013 15:33:56 +0000 (15 16:33 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 6 Mar 2013 09:12:00 +0000 (6 10:12 +0100)
tree354defaa7ad1e26d60c23a46a97dec9f0c581044
parent75b49eb1bb2c7ec983f778c4e46cb3e573303172
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