Skip to content

Commit

Permalink
Merge branch 'fix-signal-leak'
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
azat committed Jul 5, 2020
2 parents 90bcf2d + 4edfe6a commit f6bfa8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion poll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
Expand Down
2 changes: 1 addition & 1 deletion select.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const struct eventop selectops = {
select_del,
select_dispatch,
select_dealloc,
0, /* doesn't need reinit. */
1, /* need_reinit. */
EV_FEATURE_FDS,
0,
};
Expand Down

0 comments on commit f6bfa8b

Please sign in to comment.