c - Can EPOLLHUP trigger an event for a descriptor, disabled by EPOLLONESHOT? -


i have few threads, waiting on same epoll_fd epoll_wait(). descriptors within epoll set setup in way:

struct epoll_event event; event.events = epollin | epolloneshot; event.data.fd = fd; 

the purpose of epolloneshot guarantee, each descriptor handled in 1 thread @ same time. if 1 thread has received epollin event specific fd, can epollhup or epollerr trigger event in thread same fd?

i suggest can't - since descriptor disabled due epolloneshot. if can - can use epollrdhup instead? triggered at least once when descriptor becomes invalid/closed/disconnected means?

seems disabled descriptors don't receive epollhup.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -