aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/xnbd/remove-sys_siglist.patch
blob: 8d9c3618f8947e9a5391f5a16d5b209bdf27e476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 */