summaryrefslogtreecommitdiff
path: root/task-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'task-utils.c')
-rw-r--r--task-utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/task-utils.c b/task-utils.c
index a4017ff2..12b00027 100644
--- a/task-utils.c
+++ b/task-utils.c
@@ -119,6 +119,9 @@ void task_period_wait(struct task_info *info)
if (!info)
return;
+ if (info->periodic.timer_fd == 0)
+ return;
+
ret = read(info->periodic.timer_fd, &missed, sizeof (missed));
if (ret == -1)
return;