mirror of
https://github.com/hufrea/byedpi.git
synced 2025-02-17 17:00:04 +03:00
UDP: remove events from TCP socket
This commit is contained in:
parent
9429008264
commit
4c99442199
1 changed files with 1 additions and 1 deletions
2
conev.c
2
conev.c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue