The only valid flag for timer_settime is TIMER_ABSTIME, which we
certainly don't want here. This seems to be harmless since
timer_settime doesn't validate the flags parameter, TIMER_ABSTIME is
universally 0x1, and no architecture has SA_SIGINFO == 1.
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
return 1;
if (timer_create(CLOCK_MONOTONIC, &sig_e, t_id))
return 1;
- if (timer_settime(*t_id, SA_SIGINFO, &val, NULL))
+ if (timer_settime(*t_id, 0, &val, NULL))
return 1;
return 0;
}