7

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

Feng Deng
  • 153
  • 1
  • 7

1 Answers1

2

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?

Bacon
  • 1,814
  • 3
  • 21
  • 36
  • Thanks, Bacon. Just noticed your response. The issue has been resolved and thanks for your reply. You are correct - the descriptor was indeed closed unexpectedly. – Feng Deng Aug 29 '19 at 01:53
  • Please consider accepting the answer if it matched the problem :) – Bacon Aug 29 '19 at 18:31