diff options
-rw-r--r-- | shell/ash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c index 2146349ab..0cdfd2b1c 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -6683,10 +6683,10 @@ sprint_status(char *s, int status, int sigonly) | |||
6683 | col = 0; | 6683 | col = 0; |
6684 | st = WEXITSTATUS(status); | 6684 | st = WEXITSTATUS(status); |
6685 | if (!WIFEXITED(status)) { | 6685 | if (!WIFEXITED(status)) { |
6686 | st = WSTOPSIG(status); | 6686 | st = WTERMSIG(status); |
6687 | #if JOBS | 6687 | #if JOBS |
6688 | if (!WIFSTOPPED(status)) | 6688 | if (WIFSTOPPED(status)) |
6689 | st = WTERMSIG(status); | 6689 | st = WSTOPSIG(status); |
6690 | #endif | 6690 | #endif |
6691 | if (sigonly) { | 6691 | if (sigonly) { |
6692 | if (st == SIGINT || st == SIGPIPE) | 6692 | if (st == SIGINT || st == SIGPIPE) |