Handle EINTR to select()

This commit is contained in:
Ludvig Strigeus 2018-12-16 17:17:13 +01:00
parent 48b2604064
commit 567cace5f8

View file

@ -613,6 +613,8 @@ void *UnixSocketDeletionWatcher::RunThreadInner() {
FD_SET(pipes_[0], &fdset);
int n = select(std::max(inotify_fd_, pipes_[0]) + 1, &fdset, NULL, NULL, NULL);
if (n == -1) {
if (errno == EINTR)
continue;
perror("select");
break;
}