poll: requires reinit (otherwise it leaks signal handlers)

Fixes: main/fork under POLL with ASAN
This commit is contained in:
Azat Khuzhin 2020-07-05 13:14:36 +03:00
parent 90bcf2d660
commit c51c09b8ee

2
poll.c
View File

@ -90,7 +90,7 @@ const struct eventop pollops = {
poll_del, poll_del,
poll_dispatch, poll_dispatch,
poll_dealloc, poll_dealloc,
0, /* doesn't need_reinit */ 1, /* need_reinit */
EV_FEATURE_FDS|EARLY_CLOSE_IF_HAVE_RDHUP, EV_FEATURE_FDS|EARLY_CLOSE_IF_HAVE_RDHUP,
sizeof(struct pollidx), sizeof(struct pollidx),
}; };