From 0ccc5d8998a62c3e137f798e1e2b7f8362f12a85 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 15 Aug 2012 13:17:05 -0600 Subject: [PATCH] fix a latent bug in process.c * process.c (wait_reading_process_output): Check Writeok bits, not write_mask. --- src/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, && d->func != 0 && (d->condition & FOR_READ) != 0) d->func (channel, d->data, 1); - if (FD_ISSET (channel, &write_mask) + if (FD_ISSET (channel, &Writeok) && d->func != 0 && (d->condition & FOR_WRITE) != 0) d->func (channel, d->data, 0); -- 2.39.5