gdb错误:无法执行epoll_wait:(4)中断系统调用 [英] gdb error: Unable to execute epoll_wait: (4) Interrupted system call

查看:983
本文介绍了gdb错误:无法执行epoll_wait:(4)中断系统调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不能使用,因为下面的错误的GDB运行我的代码调试:

I am unable to run my code in debug using gdb because of the following error:

无法执行epoll_wait:(4)被中断的系统调用

Unable to execute epoll_wait: (4) Interrupted system call

,关于如何解决这个任何想法?

Any ideas on how to solve this?

由于

推荐答案

您应该检查 epoll_wait 的返回值,那么如果它是 1 比较 errno EINTR ,如果是,请重试系统调用。这通常在循环中用 continue 来完成。

You should check the epoll_wait return value, then if it's -1 compare errno to EINTR and, if so, retry the system call. This is usually done with continue in a loop.

这篇关于gdb错误:无法执行epoll_wait:(4)中断系统调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆