From 735f8de69a8b395e8be6f83e616d8045753b6790 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 28 Nov 2024 17:42:53 +1100 Subject: [PATCH] Update Logger.c --- src/Logger.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Logger.c b/src/Logger.c index 0ddb8e4..de21b51 100644 --- a/src/Logger.c +++ b/src/Logger.c @@ -1195,9 +1195,11 @@ static void SignalHandler(int sig, siginfo_t* info, void* ctx) { } void Logger_Hook(void) { - struct sigaction sa, old; + struct sigaction sa = { 0 }; + struct sigaction old; + /* sigemptyset(&sa.sa_mask); */ + /* NOTE: Calling sigemptyset breaks when using recent Android NDK and trying to run on old devices */ sa.sa_sigaction = SignalHandler; - sigemptyset(&sa.sa_mask); sa.sa_flags = SA_RESTART | SA_SIGINFO; sigaction(SIGSEGV, &sa, &old);