Skip to content

Commit

Permalink
use filter from table, not hard-coded EVFILT_READ
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Sep 25, 2017
1 parent b6bd418 commit f5f9ce6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/util/event.c
Expand Up @@ -446,11 +446,12 @@ static ssize_t fr_event_build_evset(struct kevent out[], size_t outlen,
*/
if ((c_func && !p_func) || (c_func && p_func && (c_fflags != p_fflags))) {
EV_SET(out_p++, ef->fd, map_p->filter, map_p->flags, c_fflags, 0, ef);

/*
* Delete
*/
} else if (!c_func && p_func) {
EV_SET(out_p++, ef->fd, EVFILT_READ, EV_DELETE, 0, 0, 0);
EV_SET(out_p++, ef->fd, map_p->filter, EV_DELETE, 0, 0, 0);
}
}

Expand Down

1 comment on commit f5f9ce6

@arr2036
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, c/p error.

Please sign in to comment.