diff options
author | Peter Stephenson <p.stephenson@samsung.com> | 2018-10-03 11:31:51 +0100 |
---|---|---|
committer | Peter Stephenson <p.stephenson@samsung.com> | 2018-10-03 11:32:39 +0100 |
commit | 623294a3edf2a9f3b690c0ef74b8812662f2c162 (patch) | |
tree | 6ad740a6874c645bbe17e46b9f5a613b4fb371ab /Src/jobs.c | |
parent | f9952301b2e4ba1c2181beabc02a7e0597358e7b (diff) | |
download | zsh-623294a3edf2a9f3b690c0ef74b8812662f2c162.tar.gz zsh-623294a3edf2a9f3b690c0ef74b8812662f2c162.tar.xz zsh-623294a3edf2a9f3b690c0ef74b8812662f2c162.zip |
43589: Further improved subjob reporting.
Show subjob status instead of user-visible superjob any time the subjob still has associated processes.
Diffstat (limited to 'Src/jobs.c')
-rw-r--r-- | Src/jobs.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Src/jobs.c b/Src/jobs.c index c15001d6b..ed9f81f26 100644 --- a/Src/jobs.c +++ b/Src/jobs.c @@ -1081,17 +1081,13 @@ printjob(Job jn, int lng, int synch) jn->other) { Job sjn = &jobtab[jn->other]; - if (sjn->stat & STAT_STOPPED) + if (sjn->procs || sjn->auxprocs) { /* - * A subjob is stopped, which will prevent further excution - * of the superjob, which the user wants to know about. So - * report the status of the subjob as if it were the - * user-visible superjob. - * - * TBD: there may be other times we want to do this - * which would, for example, remove the need for the - * hack at the top of the loop over processes just below. + * A subjob still has process, which must finish before + * further excution of the superjob, which the user wants to + * know about. So report the status of the subjob as if it + * were the user-visible superjob. */ jn = sjn; } |