]> git.eshelyaron.com Git - emacs.git/commitdiff
Yield to another thread if the subprocess has no data available.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Wed, 23 Sep 2009 13:25:49 +0000 (15:25 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Wed, 23 Sep 2009 13:25:49 +0000 (15:25 +0200)
src/process.c

index 99cc3a0169769a71df0df32b1cf4a035fa07c732..7105545754162e8ea8dd8484e3fbe5ad31d945c0 100644 (file)
@@ -5047,6 +5047,7 @@ wait_reading_process_output (time_limit, microsecs, read_kbd, do_display,
          if (detect_input_pending ())
            break;
 #endif
+         thread_yield ();
        }
 
       /* Exit now if the cell we're waiting for became non-nil.  */