Skip to content

Commit

Permalink
util: reraise signal in crash handler
Browse files Browse the repository at this point in the history
Signed-off-by: He Xian <hexian000@outlook.com>
  • Loading branch information
hexian000 committed Nov 10, 2024
1 parent e01c1a1 commit d839daa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ static void crash_handler(const int signo)
LOGE_F("sigaction: %s", strerror(errno));
_Exit(EXIT_FAILURE);
}
if (raise(signo)) {
_Exit(EXIT_FAILURE);
}
}

static void set_crash_handler(void)
Expand Down

0 comments on commit d839daa

Please sign in to comment.