diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2019-10-14 09:45:22 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2019-10-14 09:46:18 +0000 |
commit | dca5e2cab62e8dd51f87a5e546fc03f73e777020 (patch) | |
tree | 6c76c8e13b05d40284374fa1cfad8231ce0bda8a /community/gvmd/sys-siglist.patch | |
parent | 4551afe2bca74bb0da2008bdcd27df12a2115b76 (diff) | |
download | aports-dca5e2cab62e8dd51f87a5e546fc03f73e777020.tar.bz2 aports-dca5e2cab62e8dd51f87a5e546fc03f73e777020.tar.xz |
community/gvmd: upgrade to 9.0.0
Diffstat (limited to 'community/gvmd/sys-siglist.patch')
-rw-r--r-- | community/gvmd/sys-siglist.patch | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/community/gvmd/sys-siglist.patch b/community/gvmd/sys-siglist.patch index 760b3e11f9..8d5ba9681f 100644 --- a/community/gvmd/sys-siglist.patch +++ b/community/gvmd/sys-siglist.patch @@ -1,83 +1,83 @@ -diff --git a/src/gmpd.c b/src/gmpd.c -index 5d39430..1b0159f 100644 ---- a/src/gmpd.c -+++ b/src/gmpd.c -@@ -569,7 +569,7 @@ serve_gmp (gvm_connection_t *client_connection, +diff --git a/src/manage.c b/src/manage.c +index a98a0c1..85e3147 100644 +--- a/src/manage.c ++++ b/src/manage.c +@@ -3278,7 +3278,7 @@ handle_slave_task (task_t task, target_t target, + { + g_debug ("%s: Received %s signal.", + __FUNCTION__, +- sys_siglist[get_termination_signal()]); ++ strsignal(get_termination_signal())); + } + if (global_current_report) + { +@@ -3300,7 +3300,7 @@ handle_slave_task (task_t task, target_t target, { g_debug ("%s: Received %s signal.", __FUNCTION__, -- sys_siglist[get_termination_signal ()]); -+ strsignal(get_termination_signal ())); - - if (openvas_scanner_connected ()) +- sys_siglist[get_termination_signal()]); ++ strsignal(get_termination_signal())); + if (global_current_report) { + set_report_scan_run_status (global_current_report, diff --git a/src/gvmd.c b/src/gvmd.c -index bee8d65..6d35464 100644 +index 047977c..419a585 100644 --- a/src/gvmd.c +++ b/src/gvmd.c -@@ -932,7 +932,7 @@ setup_signal_handler (int signal, void (*handler) (int), int block) +@@ -922,7 +922,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", __FUNCTION__, sys_siglist[signal]); -+ "%s: failed to register %s handler", __FUNCTION__, strsignal(signal)); + g_critical ("%s: failed to register %s handler", +- __FUNCTION__, sys_siglist[signal]); ++ __FUNCTION__, strsignal(signal)); exit (EXIT_FAILURE); } } -@@ -963,7 +963,7 @@ setup_signal_handler_info (int signal, +@@ -953,7 +953,7 @@ setup_signal_handler_info (int signal, if (sigaction (signal, &action, NULL) == -1) { - g_critical ( -- "%s: failed to register %s handler", __FUNCTION__, sys_siglist[signal]); -+ "%s: failed to register %s handler", __FUNCTION__, strsignal(signal)); + g_critical ("%s: failed to register %s handler", +- __FUNCTION__, sys_siglist[signal]); ++ __FUNCTION__, strsignal(signal)); exit (EXIT_FAILURE); } } -@@ -1330,7 +1330,7 @@ serve_and_schedule () - +@@ -1258,7 +1258,7 @@ serve_and_schedule () if (termination_signal) { -- g_debug ("Received %s signal", sys_siglist[termination_signal]); -+ g_debug ("Received %s signal", strsignal(termination_signal)); + g_debug ("Received %s signal", +- 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); -@@ -1417,7 +1417,7 @@ serve_and_schedule () - +@@ -1347,7 +1347,7 @@ serve_and_schedule () if (termination_signal) { -- g_debug ("Received %s signal", sys_siglist[termination_signal]); -+ g_debug ("Received %s signal", strsignal(termination_signal)); + g_debug ("Received %s signal", +- 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); -diff --git a/src/manage.c b/src/manage.c -index 3e66c1e..7d259c6 100644 ---- a/src/manage.c -+++ b/src/manage.c -@@ -3812,7 +3812,7 @@ handle_slave_task (task_t task, - { - g_debug ("%s: Received %s signal.", - __FUNCTION__, -- sys_siglist[get_termination_signal ()]); -+ strsignal(get_termination_signal ())); - } - if (global_current_report) - { -@@ -3832,7 +3832,7 @@ handle_slave_task (task_t task, +diff --git a/src/gmpd.c b/src/gmpd.c +index 3becfe3..e45897c 100644 +--- a/src/gmpd.c ++++ b/src/gmpd.c +@@ -496,7 +496,7 @@ serve_gmp (gvm_connection_t *client_connection, const gchar *database, { g_debug ("%s: Received %s signal.", __FUNCTION__, -- sys_siglist[get_termination_signal ()]); -+ strsignal(get_termination_signal ())); - if (global_current_report) - { - set_report_scan_run_status (global_current_report, +- sys_siglist[get_termination_signal()]); ++ strsignal(get_termination_signal())); + + goto client_free; + } diff --git a/src/manage_sql.c b/src/manage_sql.c -index ff88628..f21b0b5 100644 +index 5fbcea4..c7c516c 100644 --- a/src/manage_sql.c +++ b/src/manage_sql.c -@@ -18256,7 +18256,7 @@ cleanup_manage_process (gboolean cleanup) +@@ -18421,7 +18421,7 @@ cleanup_manage_process (gboolean cleanup) void manage_cleanup_process_error (int signal) { |