aboutsummaryrefslogtreecommitdiffstats
path: root/testing/xnbd/remove-sys_siglist.patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-11-06 11:43:32 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2015-11-06 11:43:51 +0100
commit52c5ab1f7a48e06de55edbb43a6564257499425c (patch)
tree4e8ba0b01a9d3e90f38edc4efbbe9da6f1ad1a72 /testing/xnbd/remove-sys_siglist.patch
parent1a09689271c4e4aaef6837e8aebc9aab39b5ab21 (diff)
downloadaports-52c5ab1f7a48e06de55edbb43a6564257499425c.tar.bz2
aports-52c5ab1f7a48e06de55edbb43a6564257499425c.tar.xz
testing/xnbd: new aport
Diffstat (limited to 'testing/xnbd/remove-sys_siglist.patch')
-rw-r--r--testing/xnbd/remove-sys_siglist.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/xnbd/remove-sys_siglist.patch b/testing/xnbd/remove-sys_siglist.patch
new file mode 100644
index 0000000000..8d9c3618f8
--- /dev/null
+++ b/testing/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 */