fix kqueue eof event

This commit is contained in:
zixun
2018-07-05 18:35:43 +08:00
committed by 云风
parent 0e41231298
commit 1df72c0afe
4 changed files with 10 additions and 2 deletions

View File

@@ -60,6 +60,7 @@ sp_wait(int efd, struct event *e, int max) {
e[i].write = (flag & EPOLLOUT) != 0;
e[i].read = (flag & (EPOLLIN | EPOLLHUP)) != 0;
e[i].error = (flag & EPOLLERR) != 0;
e[i].eof = false;
}
return n;