1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-05 23:11:11 +02:00

34399: fix polltty thinko from 34365

Also add missing ChangeLog entry for 34365.
This commit is contained in:
Barton E. Schaefer 2015-01-25 16:07:49 -08:00
parent 2546c86244
commit 494c251cb0
2 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,7 @@
2015-01-25 Barton E. Schaefer <schaefer@zsh.org>
* 34399: Src/utils.c: fix polltty thinko from 34365
* 34389: Src/hist.c: fix parsing of ">!" when read from histfile
with HIST_LEX_WORDS in effect
@ -7,6 +9,10 @@
* 34369: Daniel Shahaf: document error / warning codes.
* 34365: configure.ac, Src/hist.c, Src/utils.c: History lockfile
backoff: randomised time. zsleep() provides microsecond
resolution for sleep.
* 34383: Src/utils.c: new ztrdup() shoud be dupstring().
2015-01-25 Oliver Kiddle <opk@zsh.org>

View file

@ -2323,7 +2323,7 @@ read_poll(int fd, int *readchar, int polltty, zlong microseconds)
* as plausible as it sounds, but it seems the right way to guess.
* pws 2000/06/26
*/
if (fd >= 0) {
if (polltty && fd >= 0) {
gettyinfo(&ti);
if ((polltty = ti.tio.c_cc[VMIN])) {
ti.tio.c_cc[VMIN] = 0;