Skip to content
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 from
Closed

linux_udev: Retry poll() on EINTR #220

wants to merge 1 commit into from

Conversation

@rom1v
Copy link
Contributor

@rom1v 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

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
Copy link
Contributor

@jwrdegoede 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
Copy link
Contributor Author

@rom1v rom1v commented Nov 3, 2016

👍 0a02d12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants