aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/xnbd/remove-sys_siglist.patch
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/xnbd/remove-sys_siglist.patch')
-rw-r--r--unmaintained/xnbd/remove-sys_siglist.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/unmaintained/xnbd/remove-sys_siglist.patch b/unmaintained/xnbd/remove-sys_siglist.patch
new file mode 100644
index 0000000000..8d9c3618f8
--- /dev/null
+++ b/unmaintained/xnbd/remove-sys_siglist.patch
@@ -0,0 +1,35 @@
+--- ./xnbd_server.c.orig
++++ ./xnbd_server.c
+@@ -181,7 +181,7 @@
+
+ static void signal_handler(int signum)
+ {
+- dbg("sig: signal catched, code %d (%s)", signum, sys_siglist[signum]);
++ dbg("sig: signal catched, code %d (%s)", signum, strsignal(signum));
+
+ if (signum == SIGCHLD)
+ got_sigchld = 1;
+@@ -495,7 +495,7 @@
+ info(" with exit status=%d", WEXITSTATUS(status));
+
+ if (WIFSIGNALED(status))
+- info(" killed by signal=%d(%s)", WTERMSIG(status), sys_siglist[WTERMSIG(status)]);
++ info(" killed by signal=%d(%s)", WTERMSIG(status), strsignal(WTERMSIG(status)));
+ }
+
+ const bool single_client_at_most = (connect_fd != -1);
+--- ./xnbd_watchdog.c.orig
++++ ./xnbd_watchdog.c
+@@ -26,10 +26,10 @@
+
+ static void nbddev_watchdog_sigalarm_handler(int signum)
+ {
+- info("sig: signal catched, code %d (%s)", signum, sys_siglist[signum]);
++ info("sig: signal catched, code %d (%s)", signum, strsignal(signum));
+
+ if (signum != SIGALRM)
+- warn("unexpected signal, code %d (%s)", signum, sys_siglist[signum]);
++ warn("unexpected signal, code %d (%s)", signum, strsignal(signum));
+ }
+
+ /* string is dummy */