[BusyBox-cvs] busybox.stable ash.c,1.45,1.46
Erik Andersen
andersen at busybox.net
Thu Oct 9 02:05:35 UTC 2003
Update of /var/cvs/busybox.stable
In directory winder:/tmp/cvs-serv4445
Modified Files:
ash.c
Log Message:
Remove use of sys_siglist
Index: ash.c
===================================================================
RCS file: /var/cvs/busybox.stable/ash.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- ash.c 11 Dec 2002 22:02:12 -0000 1.45
+++ ash.c 9 Oct 2003 02:05:31 -0000 1.46
@@ -6214,8 +6214,8 @@
else /* WIFSIGNALED(ps->status) */
#endif
i = WTERMSIG(ps->status);
- if ((i & 0x7F) < NSIG && sys_siglist[i & 0x7F])
- strcpy(s, sys_siglist[i & 0x7F]);
+ if ((i & 0x7F) < NSIG && strsignal(i & 0x7F))
+ strcpy(s, strsignal(i & 0x7F));
else
snprintf(s, 64, "Signal %d", i & 0x7F);
if (WCOREDUMP(ps->status))
@@ -6718,8 +6718,8 @@
if (sig == SIGTSTP && rootshell && iflag)
out2fmt("%%%ld ", (long) (job - jobtab + 1));
#endif
- if (sig < NSIG && sys_siglist[sig])
- out2str(sys_siglist[sig]);
+ if (sig < NSIG && strsignal(sig))
+ out2str(strsignal(sig));
else
out2fmt("Signal %d", sig);
if (core)
@@ -11439,7 +11439,7 @@
const char *sn;
p = single_quote(trap[signo]);
- sn = sys_siglist[signo];
+ sn = strsignal(signo);
if (sn == NULL)
sn = u_signal_names(0, &signo, 0);
if (sn == NULL)
More information about the busybox-cvs
mailing list