mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-17 22:31:12 +01:00
36079: do not allow update_job() and its helpers to run the signal queue while we are processing a job exit.
This commit is contained in:
parent
6fa8708bfc
commit
93ca77f8f7
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2015-08-10 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 36079: Src/signals.c: do not allow update_job() and its helpers
|
||||
to run the signal queue while we are processing a job exit.
|
||||
|
||||
2015-08-10 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 36083: Src/builtin.c, Test/B02typeset.ztst: set array value
|
||||
|
|
|
@ -487,6 +487,12 @@ wait_for_processes(void)
|
|||
break;
|
||||
}
|
||||
|
||||
/* This is necessary to be sure queueing_enabled > 0 when
|
||||
* we enter printjob() from update_job(), so that we don't
|
||||
* decrement to zero in should_report_time() and improperly
|
||||
* run other handlers in the middle of processing this one */
|
||||
queue_signals();
|
||||
|
||||
/*
|
||||
* Find the process and job containing this pid and
|
||||
* update it.
|
||||
|
@ -536,6 +542,8 @@ wait_for_processes(void)
|
|||
WEXITSTATUS(status)));
|
||||
addbgstatus(pid, val);
|
||||
}
|
||||
|
||||
unqueue_signals();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue