1
0
Fork 0
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:
Barton E. Schaefer 2015-08-10 12:54:05 -07:00
parent 6fa8708bfc
commit 93ca77f8f7
2 changed files with 13 additions and 0 deletions

View file

@ -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

View file

@ -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();
}
}