diff --git a/selfdrive/clocksd/clocksd.cc b/selfdrive/clocksd/clocksd.cc index 951a92467..c24ffa41d 100644 --- a/selfdrive/clocksd/clocksd.cc +++ b/selfdrive/clocksd/clocksd.cc @@ -50,7 +50,10 @@ int main() { uint64_t expirations = 0; while (!do_exit && (err = read(timerfd, &expirations, sizeof(expirations)))) { - if (err < 0) break; + if (err < 0) { + if (errno == EINTR) continue; + break; + } #else // Just run at 1Hz on apple while (!do_exit) {