summaryrefslogtreecommitdiff
path: root/rts/posix/itimer/Pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/posix/itimer/Pthread.c')
-rw-r--r--rts/posix/itimer/Pthread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/rts/posix/itimer/Pthread.c b/rts/posix/itimer/Pthread.c
index e84a53a058..2133a5b454 100644
--- a/rts/posix/itimer/Pthread.c
+++ b/rts/posix/itimer/Pthread.c
@@ -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) {