Commit df9b772a authored by Ben Gamari's avatar Ben Gamari 🐢

Catch errors from timerfd_settime

parent 65e13f66
......@@ -105,7 +105,10 @@ static void *itimer_thread_func(void *_handle_tick)
if (!TFD_CLOEXEC) {
fcntl(timerfd, F_SETFD, FD_CLOEXEC);
}
int ret = timerfd_settime(timerfd, 0, &it, NULL);
if (timerfd_settime(timerfd, 0, &it, NULL)) {
sysErrorBelch("timerfd_settime");
stg_exit(EXIT_FAILURE);
}
#endif
while (1) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment