diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2022-05-08 05:47:24 +0200 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2022-05-08 05:47:24 +0200 |
commit | 5615b53bbf3578a91bab8658b38d0352433510e7 (patch) | |
tree | bdf29751a810afd43ab7497d47229ba64d5707e8 /Src/exec.c | |
parent | 514524ee7be382a740e53e2a7c0247f2d68d7730 (diff) | |
parent | 9529af723604dfe1c8152db11e1d216621c898d5 (diff) | |
download | zsh-5615b53bbf3578a91bab8658b38d0352433510e7.tar.gz zsh-5615b53bbf3578a91bab8658b38d0352433510e7.zip |
Update upstream source from tag 'upstream/5.8.1.3-test'
Update to upstream version '5.8.1.3-test'
with Debian dir db59cf6a81e7a92e349f815dc21759ccb7ed689a
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Src/exec.c b/Src/exec.c index 27d49e005..f2911807c 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -561,7 +561,7 @@ zexecve(char *pth, char **argv, char **newenvp) isbinary = 1; hasletter = 0; for (ptr = execvebuf; ptr < ptr2; ptr++) { - if (islower(*ptr) || *ptr == '$' || *ptr == '`') + if (islower(STOUC(*ptr)) || *ptr == '$' || *ptr == '`') hasletter = 1; if (hasletter && *ptr == '\n') { isbinary = 0; @@ -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)) { @@ -4879,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; } |