diff options
Diffstat (limited to 'community/openvas-scanner/execinfo-musl-fix.patch')
-rw-r--r-- | community/openvas-scanner/execinfo-musl-fix.patch | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/community/openvas-scanner/execinfo-musl-fix.patch b/community/openvas-scanner/execinfo-musl-fix.patch index 0832051a4a4..a96102a2aad 100644 --- a/community/openvas-scanner/execinfo-musl-fix.patch +++ b/community/openvas-scanner/execinfo-musl-fix.patch @@ -1,11 +1,11 @@ diff --git a/src/sighand.c b/src/sighand.c -index c82e7e3..4d7001e 100644 +index 8752ae1..b30682c 100644 --- a/src/sighand.c +++ b/src/sighand.c -@@ -22,8 +22,9 @@ - * @file sighand.c - * @brief Provides signal handling functions. - */ +@@ -27,8 +27,9 @@ + + #include "debug_utils.h" + #include "processes.h" - +#ifdef HAVE_EXECINFO_H #include <execinfo.h> /* for backtrace() */ @@ -13,28 +13,26 @@ index c82e7e3..4d7001e 100644 #include <glib.h> /* for G_LOG_DOMAIN, for g_critical() */ #include <signal.h> /* for kill() */ #include <sys/wait.h> /* for waitpid() */ -@@ -106,7 +107,7 @@ sighand_chld (pid_t pid) - - waitpid (pid, &status, WNOHANG); +@@ -113,6 +114,7 @@ sighand_chld (int sig) + waitpid (-1, NULL, WNOHANG); } -- + +#ifdef HAVE_EXECINFO_H static void - print_trace () + print_trace (void) { -@@ -125,12 +126,15 @@ print_trace () - +@@ -131,11 +133,14 @@ print_trace (void) + g_free (strings); } +#endif - + void sighand_segv (int given_signal) { - signal (SIGSEGV, _exit); +#ifdef HAVE_EXECINFO_H print_trace (); +#endif make_em_die (SIGTERM); + gvm_close_sentry (); /* Raise signal again, to exit with the correct return value, - * and to enable core dumping. */ |