From: Giuseppe Scrivano Date: Wed, 23 Sep 2009 13:25:49 +0000 (+0200) Subject: Yield to another thread if the subprocess has no data available. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f39869e0314e734c37f0b6f2b70396547cbd2f4f;p=emacs.git Yield to another thread if the subprocess has no data available. --- diff --git a/src/process.c b/src/process.c index 99cc3a01697..71055457541 100644 --- a/src/process.c +++ b/src/process.c @@ -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. */