1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Description: Use strsignal() in favor of sys_siglist[]
The sys_siglist, _sys_siglist and sys_sigabbrev arrays have been deprecated.
All programs should use strsignal() instead.
.
Author: Lukas Märdian <slyon@ubuntu.com>
Forwarded: no
Last-Update: 2021-04-23
---
--- a/proc.c
+++ b/proc.c
@@ -728,8 +728,7 @@
&& (reason != SIGPIPE
|| (pp->p_flags & PPOU) == 0))) {
(void) fprintf(cshout, "%*s", width,
- sys_siglist[(unsigned char)
- pp->p_reason]);
+ strsignal(pp->p_reason));
hadnl = 0;
}
break;
|