How to detect socket closure in an edge-triggered epoll read() event?
Issue
- On an edge-triggered
epoll_wait
call, how do I avoid callingread()
again to know if the socket is closed?
Environment
- Red hat Enterprise Linux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.