diff options
author | Bart Schaefer <schaefer@zsh.org> | 2022-04-29 20:37:09 -0700 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2022-04-29 20:37:09 -0700 |
commit | 8181708feb35c647aa9b9692875a1ebf893ade6b (patch) | |
tree | 2b5667f4c91269f48c5d6ba1090e351584929645 /Src/exec.c | |
parent | 15bf8ace168a86d0fae90b10e9f706baddd4c0bf (diff) | |
download | zsh-8181708feb35c647aa9b9692875a1ebf893ade6b.tar.gz zsh-8181708feb35c647aa9b9692875a1ebf893ade6b.tar.xz zsh-8181708feb35c647aa9b9692875a1ebf893ade6b.zip |
50136: Fix =(nosuchcommand) race/deadlock first reported in workers/42609
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Src/exec.c b/Src/exec.c index c31089bb5..f2911807c 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -4883,13 +4883,9 @@ getoutputfile(char *cmd, char **eptr) child_unblock(); return nam; } else if (pid) { - int os; - close(fd); - os = jobtab[thisjob].stat; waitforpid(pid, 0); cmdoutval = 0; - jobtab[thisjob].stat = os; return nam; } |