diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2013-10-26 16:11:40 -0700 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2013-10-26 16:11:40 -0700 |
commit | c3114a7735c85b79771e08bd156470bde1a36950 (patch) | |
tree | d0790ac680b930ffee6fbef2c6613959fdfd97ae /ChangeLog | |
parent | 7a79f660db07283c25205af38a4a9fd8618db4d5 (diff) | |
download | zsh-c3114a7735c85b79771e08bd156470bde1a36950.tar.gz zsh-c3114a7735c85b79771e08bd156470bde1a36950.tar.xz zsh-c3114a7735c85b79771e08bd156470bde1a36950.zip |
31906: fix race-condition interaction of $pipestatus with job control
printjob() should not reference oldjobtab for job numbers unless it is being called from bin_fg(). printjob() also must not attempt to update pipestats when called from bin_fg(). acquire_pgrp() should not loop infintely if the shell is not interactive. Update the $pipestatus stress test so that it also exercises the oldjobtab repair.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 0561a3e0c..8601ba508 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2013-10-26 Barton E. Schaefer <schaefer@zsh.org> + + * 31906: Src/jobs.c, Test/A05execution.ztst: printjob() should not + reference oldjobtab for job numbers unless it is being called from + bin_fg(). Add a DPUTS check in case this goes horribly wrong. + printjob() also must not attempt to update pipestats when called + from bin_fg(). Finally, acquire_pgrp() cannot acquire the tty + group leader if the shell is not interactive, so avoid looping + infinitely in the attempt. Update the $pipestatus stress test so + that it also exercises the oldjobtab repair. + 2013-10-25 Peter Stephenson <p.w.stephenson@ntlworld.com> * 31890 (with Mikael's fixes in 31891): NEWS: add descriptions |