Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

epoll_ctl() failed: No such file or directory [errno = 2]

Recently updated the Linux kernel from 2.6.18 to 2.6.32, and an existing application starts error out with following error message:

epoll_ctl() failed: No such file or directory [errno = 2].

I did read through the linux man page on epoll_ctl but couldn't make much sense of it. I am trying to understand what the possible cause of such?

Thanks

like image 700
Feng Deng Avatar asked Oct 15 '15 14:10

Feng Deng


1 Answers

You should give us the code calling epoll_ctl, but likely the socket behind the file descriptor you are trying to modify has been closed somewhere else. See also Epoll: does it silently remove fds?

like image 69
Bacon Avatar answered Sep 25 '22 15:09

Bacon