This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
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 <email@example.com> Signed-off-by: Hans de Goede <firstname.lastname@example.org>
- Loading branch information
Showing 2 changed files with 6 additions and 2 deletions.