projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not use the _syscall5 macro -- use syscall(2) instead
[oweals/busybox.git]
/
shell
/
ash.c
diff --git
a/shell/ash.c
b/shell/ash.c
index deffe28c56351de755abe67777e6460e81bef3f9..fe99b02cb4605c1fd9a237b6ae743bd997012fdf 100644
(file)
--- a/
shell/ash.c
+++ b/
shell/ash.c
@@
-6690,11
+6690,7
@@
sprint_status(char *s, int status, int sigonly)
#endif
st = WTERMSIG(status);
if (sigonly) {
#endif
st = WTERMSIG(status);
if (sigonly) {
- if(st == SIGPIPE) {
- col = fmtstr(s, 16, "Broken pipe");
- goto out;
- }
- if (st == SIGINT)
+ if (st == SIGINT || st == SIGPIPE)
goto out;
#if JOBS
if (WIFSTOPPED(status))
goto out;
#if JOBS
if (WIFSTOPPED(status))
@@
-6702,7
+6698,7
@@
sprint_status(char *s, int status, int sigonly)
#endif
}
st &= 0x7f;
#endif
}
st &= 0x7f;
- col = fmtstr(s, 32,
u_signal_names(NULL, &st, 0
));
+ col = fmtstr(s, 32,
strsignal(st
));
if (WCOREDUMP(status)) {
col += fmtstr(s + col, 16, " (core dumped)");
}
if (WCOREDUMP(status)) {
col += fmtstr(s + col, 16, " (core dumped)");
}