aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/kbuild/sys_siglist.patch
blob: 140b8a0169e3b3ad3013d941bb0fd95cbef232d5 (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
diff --git a/src/ash/jobs.c b/src/ash/jobs.c
index 146326a..cbf0c3e 100644
--- a/src/ash/jobs.c
+++ b/src/ash/jobs.c
@@ -463,8 +463,8 @@ showjob(struct output *out, struct job *jp, int mode)
 #endif
 				st = WTERMSIG(ps->status);
 			st &= 0x7f;
-			if (st < NSIG && sys_siglist[st])
-				scopyn(sys_siglist[st], s + col, 32);
+			if (st < NSIG && strsignal(st))
+				scopyn(strsignal(st), s + col, 32);
 			else
 				fmtstr(s + col, 16, "Signal %d", st);
 			if (WCOREDUMP(ps->status)) {
--- ./src/kash/jobs.c.orig
+++ ./src/kash/jobs.c
@@ -396,8 +396,8 @@
 #endif
 				st = WTERMSIG(ps->status);
 			st &= 0x7f;
-			if (st < NSIG && sys_siglist[st])
-				scopyn(sys_siglist[st], s + col, 32);
+			if (st < NSIG && strsignal(st))
+				scopyn(strsignal(st), s + col, 32);
 			else
 				fmtstr(s + col, 16, "Signal %d", st);
 			if (WCOREDUMP(ps->status)) {