From f39869e0314e734c37f0b6f2b70396547cbd2f4f Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 23 Sep 2009 15:25:49 +0200 Subject: [PATCH] Yield to another thread if the subprocess has no data available. --- src/process.c | 1 + 1 file changed, 1 insertion(+) 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. */ -- 2.39.5