Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated sys_siglist with strsignal #1280

Merged
merged 1 commit into from
Sep 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

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));
tgurr marked this conversation as resolved.
Show resolved Hide resolved
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