[英]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: 最近将Linux内核从2.6.18更新到2.6.32,并且现有应用程序启动错误输出,并显示以下错误消息:
epoll_ctl() failed: No such file or directory [errno = 2]. epoll_ctl()失败:没有这样的文件或目录[errno = 2]。
I did read through the linux man page on epoll_ctl but couldn't make much sense of it. 我确实通过epoll_ctl上的linux手册页阅读了但是对它没有多大意义。 I am trying to understand what the possible cause of such? 我想了解这种可能的原因是什么?
Thanks 谢谢
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. 您应该给我们调用epoll_ctl
的代码,但是您尝试修改的文件描述符后面的套接字可能已经在其他地方关闭了。 See also Epoll: does it silently remove fds? 另见Epoll:它是否会默默地删除fds?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.