diff --git a/network_bsd.cpp b/network_bsd.cpp index bcc7b90..95283d7 100644 --- a/network_bsd.cpp +++ b/network_bsd.cpp @@ -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; }