Skip to content

Commit

Permalink
Update Logger.c
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 authored Nov 28, 2024
1 parent 71f2022 commit 735f8de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 735f8de

Please sign in to comment.