diff options
author | Chet Ramey <chet.ramey@case.edu> | 2020-02-24 10:41:37 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2020-02-24 10:41:37 -0500 |
commit | 0df4ddca3f371bc258fe4185cdec36fce3e7be7b (patch) | |
tree | 03cfd0dce3dc5d3e4d51ea230dc6703bf3b1f546 /jobs.c | |
parent | 89d788fb0152724a93e0fdab8c15116e5c76572b (diff) | |
download | bash-0df4ddca3f371bc258fe4185cdec36fce3e7be7b.tar.gz |
commit bash-20200221 snapshot
Diffstat (limited to 'jobs.c')
-rw-r--r-- | jobs.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -2739,8 +2739,7 @@ wait_sigint_handler (sig) if (interrupt_immediately || (this_shell_builtin && this_shell_builtin == wait_builtin)) { - last_command_exit_value = 128+SIGINT; - set_pipestatus_from_exit (last_command_exit_value); + set_exit_status (128+SIGINT); restore_sigint_handler (); /* If we got a SIGINT while in `wait', and SIGINT is trapped, do what POSIX.2 says (see builtins/wait.def for more info). */ @@ -2774,8 +2773,7 @@ wait_sigint_handler (sig) wait_sigint_received = 1; else { - last_command_exit_value = 128+SIGINT; - set_pipestatus_from_exit (last_command_exit_value); + set_exit_status (128+SIGINT); restore_sigint_handler (); kill (getpid (), SIGINT); } |