From 0ccc3c149413921fbf5c00696bf350333927eb64 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Thu, 28 Apr 2022 17:03:31 -0700 Subject: 50162: Fix multios with current-shell "exec" (aka nullexec). --- Src/exec.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Src') diff --git a/Src/exec.c b/Src/exec.c index 47753da48..c31089bb5 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -3898,6 +3898,10 @@ execcmd_exec(Estate state, Execcmd_params eparams, for (i = 0; i < 10; i++) if (save[i] != -2) zclose(save[i]); + /* + * We're done with this job, no need to wait for it. + */ + jobtab[thisjob].stat |= STAT_DONE; goto done; } if (isset(XTRACE)) { -- cgit 1.4.1