From: Rasmus Villemoes Date: Wed, 26 Apr 2017 10:56:08 +0000 (+0200) Subject: lib/timer.c: remove bogus SA_SIGINFO from timer_settime call X-Git-Tag: v2.30-rc1~79^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6a9147fd8b21bdbdaa0ea363d3db9a819d2b5f7;p=thirdparty%2Futil-linux.git 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 --- 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; }