Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
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> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
- Loading branch information
Showing
with
6 additions
and 2 deletions.
- +5 −1 libusb/os/linux_udev.c
- +1 −1 libusb/version_nano.h
@@ -1 +1 @@ | ||
#define LIBUSB_NANO 11156 | ||
#define LIBUSB_NANO 11157 |