I read document abount edge triggered epoll function in web as follows:
1. The file descriptor that represents the read side of a pipe (rfd) is registered on the
You must read all or write all the data on epoll's ET mode, because the et mode triggered once after the flag changed. When you have read all data, the thread must be hang if you use the block read or write. So that nonblocking must be used.