简体   繁体   English

epoll_ctl()失败:没有这样的文件或目录[errno = 2]

[英]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.

相关问题 使用linux epoll:epoll_ctl似乎有冗余参数? - Using linux epoll: epoll_ctl seems to have redundant parameter? 可以`epoll_ctl`修改传递给它的`epoll_event`结构吗? - May `epoll_ctl` modify the `epoll_event` structure passed to it? 如果在边缘触发模式下调用epoll_ctl之前文件是可读的,后续的epoll_wait会立即返回吗? - If a file is readable before epoll_ctl is called in edge-triggered mode, will a subsequent epoll_wait return immediately? epoll_ctl:不允许操作错误 - c程序 - epoll_ctl : Operation not permitted error - c program 假设输入正确,带有EPOLL_CTL_MOD的epoll_ctl()是否会失败? - Assuming correct input, can epoll_ctl() with EPOLL_CTL_MOD fail? 无法执行 "yum list": Errno 5] OSError: [Errno 2] No such file or directory - Failed to execute "yum list": Errno 5] OSError: [Errno 2] No such file or directory errno 2:没有此类文件或目录 - errno 2: No such file or directory 错误信息是 Errno 2 No such file or directory - Error Message is Errno 2 No such file or directory FileNotFoundError: [Errno 2] 没有这样的文件或目录:'ifconfig' - FileNotFoundError: [Errno 2] No such file or directory: 'ifconfig' epoll对引用目录的文件描述符做了什么? - What does epoll do with a file descriptor that refers to a directory?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM