summaryrefslogtreecommitdiff
path: root/task-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'task-utils.c')
-rw-r--r--task-utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/task-utils.c b/task-utils.c
index 768be946..58f51950 100644
--- a/task-utils.c
+++ b/task-utils.c
@@ -94,8 +94,10 @@ int task_period_start(struct task_info *info, unsigned int period_ms)
return -1;
info->periodic.timer_fd = timerfd_create(CLOCK_MONOTONIC, 0);
- if (info->periodic.timer_fd == -1)
+ if (info->periodic.timer_fd == -1) {
+ info->periodic.timer_fd = 0;
return info->periodic.timer_fd;
+ }
info->periodic.wakeups_missed = 0;