Merge branch 'fix-signal-leak'

Fixes main/fork under ASAN (LSAN if to be precise)

* fix-signal-leak:
  select: requires reinit (otherwise it leaks signal handlers)
  poll: requires reinit (otherwise it leaks signal handlers)

(cherry picked from commit f6bfa8b3e35432992d9b580617c946dbbfa38bb3)
This commit is contained in:
Azat Khuzhin 2020-07-05 13:16:52 +03:00
parent a03f0f8a54
commit 1c9cc07b32
2 changed files with 2 additions and 2 deletions

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),
}; };

View File

@ -98,7 +98,7 @@ const struct eventop selectops = {
select_del, select_del,
select_dispatch, select_dispatch,
select_dealloc, select_dealloc,
0, /* doesn't need reinit. */ 1, /* need_reinit. */
EV_FEATURE_FDS, EV_FEATURE_FDS,
0, 0,
}; };