summaryrefslogtreecommitdiff
path: root/jobs.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2020-02-24 10:41:37 -0500
committerChet Ramey <chet.ramey@case.edu>2020-02-24 10:41:37 -0500
commit0df4ddca3f371bc258fe4185cdec36fce3e7be7b (patch)
tree03cfd0dce3dc5d3e4d51ea230dc6703bf3b1f546 /jobs.c
parent89d788fb0152724a93e0fdab8c15116e5c76572b (diff)
downloadbash-0df4ddca3f371bc258fe4185cdec36fce3e7be7b.tar.gz
commit bash-20200221 snapshot
Diffstat (limited to 'jobs.c')
-rw-r--r--jobs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/jobs.c b/jobs.c
index 1f239171..83d5ebcb 100644
--- a/jobs.c
+++ b/jobs.c
@@ -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);
}