Skip to content

Commit

Permalink
Merge pull request #1280 from tgurr/sys_siglist
Browse files Browse the repository at this point in the history
Replace deprecated sys_siglist with strsignal
  • Loading branch information
mattmundell authored Sep 1, 2020
2 parents 41f4484 + ed07f5a commit 7680ad9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Set file mode creation mask for feed lock handling [#1265](https://github.com/greenbone/gvmd/pull/1265)
- Ignore min_qod when getting single results by UUID [#1276](http://github.com/greenbone/gvmd/pull/1276)
- Fix alternative options for radio type preferences when exporting a scan_config [#1278](http://github.com/greenbone/gvmd/pull/1278)
- Replace deprecated sys_siglist with strsignal [#1280](https://github.com/greenbone/gvmd/pull/1280)

### Removed
- Remove DROP from vulns creation [#1281](http://github.com/greenbone/gvmd/pull/1281)
Expand Down
4 changes: 2 additions & 2 deletions src/gvmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ serve_and_schedule ()
if (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);
Expand Down Expand Up @@ -1423,7 +1423,7 @@ serve_and_schedule ()
if (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);
Expand Down
2 changes: 1 addition & 1 deletion src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -16570,7 +16570,7 @@ cleanup_manage_process (gboolean cleanup)
void
manage_cleanup_process_error (int signal)
{
g_debug ("Received %s signal", sys_siglist[signal]);
g_debug ("Received %s signal", strsignal (signal));
if (sql_is_open ())
{
if (current_scanner_task)
Expand Down
4 changes: 2 additions & 2 deletions src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,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",
__func__, sys_siglist[signal]);
__func__, strsignal (signal));
exit (EXIT_FAILURE);
}
}
Expand Down Expand Up @@ -831,7 +831,7 @@ setup_signal_handler_info (int signal,
if (sigaction (signal, &action, NULL) == -1)
{
g_critical ("%s: failed to register %s handler",
__func__, sys_siglist[signal]);
__func__, strsignal (signal));
exit (EXIT_FAILURE);
}
}
Expand Down

0 comments on commit 7680ad9

Please sign in to comment.