From 134ec45ceb5bdec7266f6efefc8fc842e99a4a37 Mon Sep 17 00:00:00 2001 From: Anhad Singh Date: Tue, 14 Jul 2026 21:22:25 +1000 Subject: [PATCH] fix(tests/alarm_fn): zero out `sa_flags` Signed-off-by: Anhad Singh --- tests/unistd/alarm_fn.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/unistd/alarm_fn.c b/tests/unistd/alarm_fn.c index 6d1135655e..f2077f21db 100644 --- a/tests/unistd/alarm_fn.c +++ b/tests/unistd/alarm_fn.c @@ -1,9 +1,9 @@ -#include -#include -#include -#include -#include #include "test_helpers.h" +#include +#include +#include +#include +#include static sigjmp_buf jmpenv; @@ -15,6 +15,7 @@ void alarm_handler(int sig) { int main() { struct sigaction sa; + sa.sa_flags = 0; sa.sa_handler = alarm_handler; sigemptyset(&sa.sa_mask); @@ -27,7 +28,7 @@ int main() { } alarm(1); - sleep(5); + sleep(5); assert(0); // unreachable -} \ No newline at end of file +}