mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-30 15:02:18 +01:00
43589: Further improved subjob reporting.
Show subjob status instead of user-visible superjob any time the subjob still has associated processes.
This commit is contained in:
parent
f9952301b2
commit
623294a3ed
2 changed files with 10 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2018-10-03 Peter Stephenson <p.stephenson@samsung.com>
|
||||||
|
|
||||||
|
* 43589: Src/jobs.c: Show subjob status instead of superjob any
|
||||||
|
time it still has processes.
|
||||||
|
|
||||||
2018-10-02 Daniel Shahaf <d.s@daniel.shahaf.name>
|
2018-10-02 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||||
|
|
||||||
* unposted: Functions/VCS_Info/Backends/VCS_INFO_get_data_git:
|
* unposted: Functions/VCS_Info/Backends/VCS_INFO_get_data_git:
|
||||||
|
|
14
Src/jobs.c
14
Src/jobs.c
|
@ -1081,17 +1081,13 @@ printjob(Job jn, int lng, int synch)
|
||||||
jn->other)
|
jn->other)
|
||||||
{
|
{
|
||||||
Job sjn = &jobtab[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
|
* A subjob still has process, which must finish before
|
||||||
* of the superjob, which the user wants to know about. So
|
* further excution of the superjob, which the user wants to
|
||||||
* report the status of the subjob as if it were the
|
* know about. So report the status of the subjob as if it
|
||||||
* user-visible superjob.
|
* 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.
|
|
||||||
*/
|
*/
|
||||||
jn = sjn;
|
jn = sjn;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue