New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux_udev: Retry poll() on EINTR #220

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@rom1v
Contributor

rom1v commented Oct 11, 2016

The poll() syscall may temporarily fail when it is interrupted by a
signal; -1 is returned and errno is set to EINTR.

When this occurred, the udev event thread exited.

Instead, since this is a temporary failure, just try the call again.
https://www.gnu.org/software/libc/manual/html_node/Interrupted-Primitives.html

linux_udev: Retry poll() on EINTR
The poll() syscall may temporarily fail when it is interrupted by a
signal; -1 is returned and errno is set to EINTR.

When this occurred, the udev event thread exited.

Instead, since this is a temporary failure, just try the call again.
<https://www.gnu.org/software/libc/manual/html_node/Interrupted-Primitives.html>

Signed-off-by: Romain Vimont <rom@rom1v.com>
@jwrdegoede

This comment has been minimized.

Contributor

jwrdegoede commented Nov 3, 2016

Hi,

Thanks for the patch, I've merged this manually (changing the c++ style comment to ansi-c style comment).

Regards,

Hans

@jwrdegoede jwrdegoede closed this Nov 3, 2016

@rom1v

This comment has been minimized.

Contributor

rom1v commented Nov 3, 2016

👍 0a02d12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment