简体   繁体   English

gdb错误:无法执行epoll_wait:(4)系统调用中断

[英]gdb error: Unable to execute epoll_wait: (4) Interrupted system call

I am unable to run my code in debug using gdb because of the following error: 由于以下错误,我无法使用gdb在调试中运行我的代码:

Unable to execute epoll_wait: (4) Interrupted system call 无法执行epoll_wait:(4)系统调用中断

Any ideas on how to solve this? 关于如何解决这个问题的任何想法?

Thanks 谢谢

You should check the epoll_wait return value, then if it's -1 compare errno to EINTR and, if so, retry the system call. 你应该检查epoll_wait返回值,如果它是-1 errnoEINTR进行比较,如果是,则重试系统调用。 This is usually done with continue in a loop. 这通常在循环中continue进行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM