aboutsummaryrefslogtreecommitdiffstats
path: root/community/gvm/001-sys-siglist.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2018-01-29 15:05:05 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2018-01-29 15:05:05 +0000
commit4dc8ca9b5e8cc7264f031ffde02f80053dd09aca (patch)
tree032b63fc6ae5f8fb2682bcf76cbaa556fd5d8efe /community/gvm/001-sys-siglist.patch
parent4d25e023a4a0ef86015bae231fb0b10bfcc965d9 (diff)
downloadaports-4dc8ca9b5e8cc7264f031ffde02f80053dd09aca.tar.bz2
aports-4dc8ca9b5e8cc7264f031ffde02f80053dd09aca.tar.xz
community/gvm: updated srcurl, renamed package from openvas-manager
Diffstat (limited to 'community/gvm/001-sys-siglist.patch')
-rw-r--r--community/gvm/001-sys-siglist.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/community/gvm/001-sys-siglist.patch b/community/gvm/001-sys-siglist.patch
new file mode 100644
index 0000000000..7978f0550f
--- /dev/null
+++ b/community/gvm/001-sys-siglist.patch
@@ -0,0 +1,53 @@
+diff --git a/src/manage_sql.c b/src/manage_sql.c
+index e316374..83d00e9 100644
+--- a/src/manage_sql.c
++++ b/src/manage_sql.c
+@@ -12709,7 +12709,7 @@ void
+ manage_cleanup_process_error (int signal)
+ {
+ g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Received %s signal.\n",
+- sys_siglist[signal]);
++ strsignal(signal));
+ if (sql_is_open ())
+ {
+ if (current_scanner_task)
+diff --git a/src/openvasmd.c b/src/openvasmd.c
+index 808a8f1..c9981ad 100644
+--- a/src/openvasmd.c
++++ b/src/openvasmd.c
+@@ -661,7 +661,7 @@ setup_signal_handler (int signal, void (*handler) (int), int block)
+ if (sigaction (signal, &action, NULL) == -1)
+ {
+ g_critical ("%s: failed to register %s handler\n",
+- __FUNCTION__, sys_siglist[signal]);
++ __FUNCTION__, strsignal(signal));
+ exit (EXIT_FAILURE);
+ }
+ }
+@@ -1025,7 +1025,7 @@ serve_and_schedule ()
+ if (termination_signal)
+ {
+ g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Received %s signal.\n",
+- sys_siglist[termination_signal]);
++ strsignal(termination_signal));
+ cleanup ();
+ /* Raise signal again, to exit with the correct return value. */
+ setup_signal_handler (termination_signal, SIG_DFL, 0);
+@@ -1036,7 +1036,7 @@ serve_and_schedule ()
+ if (sighup_update_nvt_cache)
+ {
+ g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Received %s signal.\n",
+- sys_siglist[SIGHUP]);
++ strsignal(SIGHUP));
+ sighup_update_nvt_cache = 0;
+ fork_update_nvt_cache ();
+ }
+@@ -1095,7 +1095,7 @@ serve_and_schedule ()
+ if (termination_signal)
+ {
+ g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Received %s signal.\n",
+- sys_siglist[termination_signal]);
++ strsignal(termination_signal));
+ cleanup ();
+ /* Raise signal again, to exit with the correct return value. */
+ setup_signal_handler (termination_signal, SIG_DFL, 0);