Skip to content

Commit

Permalink
UDP: remove events from TCP socket
Browse files Browse the repository at this point in the history
  • Loading branch information
ruti committed May 4, 2024
1 parent 9429008 commit 4c99442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conev.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ struct eval *next_event(struct poolhd *pool, int *offs, int *type)
int mod_etype(struct poolhd *pool, struct eval *val, int type)
{
struct epoll_event ev = {
.events = type, .data = {val}
.events = EPOLLRDHUP | type, .data = {val}
};
return epoll_ctl(pool->efd, EPOLL_CTL_MOD, val->fd, &ev);
}
Expand Down

0 comments on commit 4c99442

Please sign in to comment.