diff options
author | Bart Schaefer <schaefer@zsh.org> | 2022-04-28 17:03:31 -0700 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2022-04-28 17:03:31 -0700 |
commit | 0ccc3c149413921fbf5c00696bf350333927eb64 (patch) | |
tree | 5c9001364928bf6c2c9152ecd9cd66360878b3aa /Src | |
parent | f59025f8490cc349e73f8d6c088391046115bb92 (diff) | |
download | zsh-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.c | 4 |
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)) { |