wenfh2020 / wenfh2020.github.io

make blog : github + jekyll
MIT License
4 stars 3 forks source link

[知乎回答] poll/epoll函数中的各种event分别应该在什么时候监听并处理呢? #153

Open wenfh2020 opened 2 years ago

wenfh2020 commented 2 years ago

https://wenfh2020.com/2021/11/13/question-poll-events/

知乎问题:POLLIN,POLLOUT,POLLERR这三个是比较显而易见的,其余的诸如POLLHUP,POLLNVAL,POLLPRI这些就比较让人摸不着头脑了,这些poll/epoll中的event应该在什么时候需要监听并处理他们呢?