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

1

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

Pozsony answered 15/10, 2015 at 14:41 Comment(0)
S
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?

Suction answered 13/11, 2018 at 22:24 Comment(2)
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.Pozsony
Please consider accepting the answer if it matched the problem :)Suction

© 2022 - 2024 — McMap. All rights reserved.