]> git.eshelyaron.com Git - emacs.git/commitdiff
fix a latent bug in process.c
authorTom Tromey <tromey@redhat.com>
Wed, 15 Aug 2012 19:17:05 +0000 (13:17 -0600)
committerTom Tromey <tromey@redhat.com>
Wed, 15 Aug 2012 19:17:05 +0000 (13:17 -0600)
* process.c (wait_reading_process_output): Check Writeok bits,
not write_mask.

src/process.c

index a43655e4da86272110f5163b6e2efe210117c8af..2a61b6da777ac3b06b6ba10904b44d5c38ac1289 100644 (file)
@@ -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);