main: handle EINTR in poll()

This commit is contained in:
Daniel Eklöf 2019-07-04 19:16:32 +02:00
parent 50d455bd15
commit dd5a3b1009
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

3
main.c
View file

@ -1016,6 +1016,9 @@ main(int argc, char *const *argv)
int ret = poll(fds, sizeof(fds) / sizeof(fds[0]), timeout_ms);
if (ret == -1) {
if (errno == EINTR)
continue;
LOG_ERRNO("failed to poll file descriptors");
break;
}