From c6a9147fd8b21bdbdaa0ea363d3db9a819d2b5f7 Mon Sep 17 00:00:00 2001 From: Rasmus Villemoes Date: Wed, 26 Apr 2017 12:56:08 +0200 Subject: [PATCH] lib/timer.c: remove bogus SA_SIGINFO from timer_settime call 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 --- lib/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timer.c b/lib/timer.c index 05fbd92f57..143c3a63a0 100644 --- a/lib/timer.c +++ b/lib/timer.c @@ -35,7 +35,7 @@ int setup_timer(timer_t * t_id, struct itimerval *timeout, 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; } -- 2.47.2