linux_udev: Retry poll() on EINTR #220

Closed
wants to merge 1 commit into
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.

Show comment
Hide comment
@jwrdegoede

jwrdegoede Nov 3, 2016

Contributor

Hi,

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

Regards,

Hans

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.

Show comment
Hide comment
@rom1v

rom1v Nov 3, 2016

Contributor

👍 0a02d12

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