From 8181708feb35c647aa9b9692875a1ebf893ade6b Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Fri, 29 Apr 2022 20:37:09 -0700 Subject: 50136: Fix =(nosuchcommand) race/deadlock first reported in workers/42609 --- Src/exec.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Src/exec.c') 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; } -- cgit 1.4.1