about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2022-04-28 17:03:31 -0700
committerBart Schaefer <schaefer@zsh.org>2022-04-28 17:03:31 -0700
commit0ccc3c149413921fbf5c00696bf350333927eb64 (patch)
tree5c9001364928bf6c2c9152ecd9cd66360878b3aa /Src
parentf59025f8490cc349e73f8d6c088391046115bb92 (diff)
downloadzsh-0ccc3c149413921fbf5c00696bf350333927eb64.tar.gz
zsh-0ccc3c149413921fbf5c00696bf350333927eb64.tar.xz
zsh-0ccc3c149413921fbf5c00696bf350333927eb64.zip
50162: Fix multios with current-shell "exec" (aka nullexec).
Diffstat (limited to 'Src')
-rw-r--r--Src/exec.c4
1 files changed, 4 insertions, 0 deletions
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)) {