diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-10-24 04:26:43 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-01-01 14:30:58 +0100 |
commit | 71afe6c513a54f5524d5a27dcfcaa77ec5046dfb (patch) | |
tree | a7c6a5d4d364b0f9c9751ceb5c1cc2b1bce34753 /shell/hush.c | |
parent | 0f668aad7ff7ee55141c93498636921b4a52f2eb (diff) | |
download | busybox-w32-71afe6c513a54f5524d5a27dcfcaa77ec5046dfb.tar.gz busybox-w32-71afe6c513a54f5524d5a27dcfcaa77ec5046dfb.tar.bz2 busybox-w32-71afe6c513a54f5524d5a27dcfcaa77ec5046dfb.zip |
hush: output bash-compat killing signal names
This significantly syncronises ash-signals and hush-signals tests.
function old new delta
process_wait_result 449 450 +1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/hush.c b/shell/hush.c index 2b34b7da5..bc6e6014f 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -8704,8 +8704,8 @@ static int process_wait_result(struct pipe *fg_pipe, pid_t childpid, int status) | |||
8704 | */ | 8704 | */ |
8705 | && i == fg_pipe->num_cmds-1 | 8705 | && i == fg_pipe->num_cmds-1 |
8706 | ) { | 8706 | ) { |
8707 | /* TODO: use strsignal() instead for bash compat? but that's bloat... */ | 8707 | /* strsignal() is for bash compat. ~600 bloat versus bbox's get_signame() */ |
8708 | puts(sig == SIGINT || sig == SIGPIPE ? "" : get_signame(sig)); | 8708 | puts(sig == SIGINT || sig == SIGPIPE ? "" : strsignal(sig)); |
8709 | } | 8709 | } |
8710 | /* TODO: if (WCOREDUMP(status)) + " (core dumped)"; */ | 8710 | /* TODO: if (WCOREDUMP(status)) + " (core dumped)"; */ |
8711 | /* TODO: MIPS has 128 sigs (1..128), what if sig==128 here? | 8711 | /* TODO: MIPS has 128 sigs (1..128), what if sig==128 here? |