Epoll is used to write a small number of sub-processes that communicate with each other through FIFO.ProgramDuring the debugging process, it is found that each time the sub-process is killed, epoll will report an error in interrupted system call with the error code eintr (4 ). This means that epoll_wait is interrupted by more advanced system calls. When someone finds this error on the Internet and says it can be ignored, the epoll_wait will be performed again when epoll reports the error number 4.
While (1) <br/>{< br/> ...... <br/> NFDs = epoll_wait (kdpfd, events, curfds,-1); <br/> If (NFDs =-1) <br/>{< br/> If (errno = eintr) <br/>{< br/> continue; <br/>}< br/> else <br/> {<br/> wislog-> error ("epoll_wait error, % s", strerror (errno )); <br/> break; <br/>}< br/> ...... <br/>}< br/>
Reference http://bbs3.chinaunix.net/thread-1585865-1-3.html