aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-11-14 21:01:26 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-11-14 21:01:26 +0000
commit7055be0826521b36cdd7f7c9f0e9e633deb6a843 (patch)
tree9cdda06192f40c463d5f03bb575ae05aa1ea7302 /shell
parent8314385f9c6960f46be9f45c6a4f5d9f3b2365c0 (diff)
downloadbusybox-w32-7055be0826521b36cdd7f7c9f0e9e633deb6a843.tar.gz
busybox-w32-7055be0826521b36cdd7f7c9f0e9e633deb6a843.tar.bz2
busybox-w32-7055be0826521b36cdd7f7c9f0e9e633deb6a843.zip
Fix a "broken pipe" problem. vodz, last_patch_116-2
git-svn-id: svn://busybox.net/trunk/busybox@7915 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/shell/ash.c b/shell/ash.c
index deffe28c5..62d596974 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -6690,10 +6690,6 @@ sprint_status(char *s, int status, int sigonly)
6690#endif 6690#endif
6691 st = WTERMSIG(status); 6691 st = WTERMSIG(status);
6692 if (sigonly) { 6692 if (sigonly) {
6693 if(st == SIGPIPE) {
6694 col = fmtstr(s, 16, "Broken pipe");
6695 goto out;
6696 }
6697 if (st == SIGINT) 6693 if (st == SIGINT)
6698 goto out; 6694 goto out;
6699#if JOBS 6695#if JOBS
@@ -6702,7 +6698,7 @@ sprint_status(char *s, int status, int sigonly)
6702#endif 6698#endif
6703 } 6699 }
6704 st &= 0x7f; 6700 st &= 0x7f;
6705 col = fmtstr(s, 32, u_signal_names(NULL, &st, 0)); 6701 col = fmtstr(s, 32, strsignal(st));
6706 if (WCOREDUMP(status)) { 6702 if (WCOREDUMP(status)) {
6707 col += fmtstr(s + col, 16, " (core dumped)"); 6703 col += fmtstr(s + col, 16, " (core dumped)");
6708 } 6704 }