aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorTom Tromey2012-08-15 13:17:05 -0600
committerTom Tromey2012-08-15 13:17:05 -0600
commit0ccc5d8998a62c3e137f798e1e2b7f8362f12a85 (patch)
treed9cfd24c1967e3e639929f72fdc0b9adfcb8b4c9 /src/process.c
parentdbb33d4e99cc9d68dea0b1c137afdb9f19121022 (diff)
downloademacs-0ccc5d8998a62c3e137f798e1e2b7f8362f12a85.tar.gz
emacs-0ccc5d8998a62c3e137f798e1e2b7f8362f12a85.zip
fix a latent bug in process.c
* process.c (wait_reading_process_output): Check Writeok bits, not write_mask.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c
index a43655e4da8..2a61b6da777 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4792,7 +4792,7 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
4792 && d->func != 0 4792 && d->func != 0
4793 && (d->condition & FOR_READ) != 0) 4793 && (d->condition & FOR_READ) != 0)
4794 d->func (channel, d->data, 1); 4794 d->func (channel, d->data, 1);
4795 if (FD_ISSET (channel, &write_mask) 4795 if (FD_ISSET (channel, &Writeok)
4796 && d->func != 0 4796 && d->func != 0
4797 && (d->condition & FOR_WRITE) != 0) 4797 && (d->condition & FOR_WRITE) != 0)
4798 d->func (channel, d->data, 0); 4798 d->func (channel, d->data, 0);