diff options
| author | Peter Stephenson <p.stephenson@samsung.com> | 2022-03-30 09:28:43 +0100 |
|---|---|---|
| committer | Peter Stephenson <p.stephenson@samsung.com> | 2022-03-30 09:28:43 +0100 |
| commit | 98e46340867028808e71e7f3373881cb7e5b6764 (patch) | |
| tree | ce804301a1890959e620dabf3e87da5a63503f80 /Src/exec.c | |
| parent | 49813: Add missing test (diff) | |
| download | zsh-98e46340867028808e71e7f3373881cb7e5b6764.tar zsh-98e46340867028808e71e7f3373881cb7e5b6764.tar.gz zsh-98e46340867028808e71e7f3373881cb7e5b6764.tar.bz2 zsh-98e46340867028808e71e7f3373881cb7e5b6764.tar.lz zsh-98e46340867028808e71e7f3373881cb7e5b6764.tar.xz zsh-98e46340867028808e71e7f3373881cb7e5b6764.tar.zst zsh-98e46340867028808e71e7f3373881cb7e5b6764.zip | |
49906 (Bart), 49911: Fixes to querying jobs in subshell.
Don't attempt to query invalid job off end of table, resulting in
crashes from $jobtstates.
If background task started in subshell, look at tatsks within subshell
instead of main shell. Document and add test.
Diffstat (limited to 'Src/exec.c')
| -rw-r--r-- | Src/exec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/exec.c b/Src/exec.c index 70cbfc97f..27d49e005 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -1689,6 +1689,7 @@ execpline(Estate state, wordcode slcode, int how, int last1) execpline2(state, code, how, opipe[0], ipipe[1], last1); pline_level--; if (how & Z_ASYNC) { + clearoldjobtab(); lastwj = newjob; if (thisjob == list_pipe_job) |
