diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-11-14 21:01:26 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-11-14 21:01:26 +0000 |
commit | 5c2c8eca4a175de7c73d3fbeb4c68817c6fd96d1 (patch) | |
tree | 9cdda06192f40c463d5f03bb575ae05aa1ea7302 /shell | |
parent | e57feeb9e602fbbc4804881685e40606a666a27d (diff) | |
download | busybox-5c2c8eca4a175de7c73d3fbeb4c68817c6fd96d1.tar.gz |
Fix a "broken pipe" problem. vodz, last_patch_116-2
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 6 |
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) #endif st = WTERMSIG(status); if (sigonly) { - if(st == SIGPIPE) { - col = fmtstr(s, 16, "Broken pipe"); - goto out; - } if (st == SIGINT) goto out; #if JOBS @@ -6702,7 +6698,7 @@ sprint_status(char *s, int status, int sigonly) #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)"); } |