mirror of
https://github.com/hufrea/byedpi.git
synced 2024-12-22 14:25:44 +00:00
UDP: remove events from TCP socket
This commit is contained in:
parent
9429008264
commit
4c99442199
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)
|
int mod_etype(struct poolhd *pool, struct eval *val, int type)
|
||||||
{
|
{
|
||||||
struct epoll_event ev = {
|
struct epoll_event ev = {
|
||||||
.events = type, .data = {val}
|
.events = EPOLLRDHUP | type, .data = {val}
|
||||||
};
|
};
|
||||||
return epoll_ctl(pool->efd, EPOLL_CTL_MOD, val->fd, &ev);
|
return epoll_ctl(pool->efd, EPOLL_CTL_MOD, val->fd, &ev);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user