Commit eed126e1 authored by Ben Gamari's avatar Ben Gamari 🐢
Browse files

Revert "rtx/posix/Itimer.c: Handle return value of `read`"

This reverts commit fd3e581b.
parent aabd44cb
......@@ -202,8 +202,7 @@ static void *itimer_thread_func(void *_handle_tick)
while (1) {
if (USE_TIMERFD_FOR_ITIMER) {
if (read(timerfd, &nticks, sizeof(nticks)) != sizeof(nticks))
sysErrorBelch("Itimer: read(timer_fd) failed");
read(timerfd, &nticks, sizeof(nticks));
} else {
usleep(TimeToUS(itimer_interval));
}
......
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