4

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

Unable to execute epoll_wait: (4) Interrupted system call

Any ideas on how to solve this?

Thanks

bbazso
  • 1,959
  • 6
  • 22
  • 30

1 Answers1

13

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.

Nikolai Fetissov
  • 82,306
  • 11
  • 110
  • 171