]> granicus.if.org Git - libevent/commitdiff
poll: requires reinit (otherwise it leaks signal handlers)
authorAzat Khuzhin <azat@libevent.org>
Sun, 5 Jul 2020 10:14:36 +0000 (13:14 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sun, 5 Jul 2020 10:15:37 +0000 (13:15 +0300)
Fixes: main/fork under POLL with ASAN
poll.c

diff --git a/poll.c b/poll.c
index ddae2bf04d2bd394038cfd77b1c0f750c1415502..c3c9aac52a85bd99ac6da38b6709b817c4810858 100644 (file)
--- a/poll.c
+++ b/poll.c
@@ -90,7 +90,7 @@ const struct eventop pollops = {
        poll_del,
        poll_dispatch,
        poll_dealloc,
-       0, /* doesn't need_reinit */
+       1, /* need_reinit */
        EV_FEATURE_FDS|EARLY_CLOSE_IF_HAVE_RDHUP,
        sizeof(struct pollidx),
 };