use EPOLLET for poller's timerfd

This commit is contained in:
XieHan
2021-08-06 16:58:08 +08:00
parent 5c9e1d3a0c
commit f104a84295
+1 -1
View File
@@ -133,7 +133,7 @@ static inline int __poller_create_timerfd()
static inline int __poller_add_timerfd(int fd, poller_t *poller)
{
struct epoll_event ev = {
.events = EPOLLIN,
.events = EPOLLIN | EPOLLET,
.data = {
.ptr = NULL
}