mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
ae1f41082f
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
38 lines
1.3 KiB
Diff
38 lines
1.3 KiB
Diff
diff -Naur csh-20110502.orig/proc.c csh-20110502.orig.patched/proc.c
|
|
--- csh-20110502.orig/proc.c 2009-10-27 19:59:21.000000000 -0400
|
|
+++ csh-20110502.orig.patched/proc.c 2021-08-27 02:56:08.386981036 -0400
|
|
@@ -726,8 +726,7 @@
|
|
&& (reason != SIGPIPE
|
|
|| (pp->p_flags & PPOU) == 0))) {
|
|
(void) fprintf(cshout, format,
|
|
- sys_siglist[(unsigned char)
|
|
- pp->p_reason]);
|
|
+ sigdescr_np(pp->p_reason));
|
|
hadnl = 0;
|
|
}
|
|
break;
|
|
@@ -948,10 +947,10 @@
|
|
else if (signum == 0)
|
|
(void) fputc('0', cshout); /* 0's symbolic name is '0' */
|
|
else
|
|
- (void) fprintf(cshout, "%s ", sys_signame[signum]);
|
|
+ (void) fprintf(cshout, "%s ", sigabbrev_np(signum));
|
|
} else {
|
|
for (signum = 1; signum < NSIG; signum++) {
|
|
- (void) fprintf(cshout, "%s ", sys_signame[signum]);
|
|
+ (void) fprintf(cshout, "%s ", sigabbrev_np(signum));
|
|
if (signum == NSIG / 2)
|
|
(void) fputc('\n', cshout);
|
|
}
|
|
@@ -978,9 +977,9 @@
|
|
}
|
|
|
|
for (signum = 1; signum < NSIG; signum++)
|
|
- if (!strcasecmp(sys_signame[signum], name) ||
|
|
+ if (!strcasecmp(sigabbrev_np(signum), name) ||
|
|
(strlen(name) > 3 && !strncasecmp("SIG", name, 3) &&
|
|
- !strcasecmp(sys_signame[signum], name + 3)))
|
|
+ !strcasecmp(sigabbrev_np(signum), name + 3)))
|
|
break;
|
|
|
|
if (signum == NSIG) {
|