Skip to content

为何要允许EPOLL_CTL_DEL的失败? #697

Answered by chenshuo
xb1520 asked this question in Q&A
Discussion options

You must be logged in to vote

在你提到的这个 commit 之前,是 66ec601 add curl example.

因为 curl 会自己先 close fd,再通知我们不再关注其上的 event,所以会出现 EPOLL_CTL_DEL 错误。

为此只能不把 EPOLL_CTL_DEL 当致命错误。

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xb1520
Comment options

Answer selected by xb1520
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants