summaryrefslogtreecommitdiff
path: root/src/process.c
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2008-05-19 16:29:33 +0000
committerChong Yidong <cyd@stupidchicken.com>2008-05-19 16:29:33 +0000
commit61bd39a3bd199e2ad73dfa74105ff062dcf26580 (patch)
tree7288890e8d8240c4fc7c38a24b884228ca3480fd /src/process.c
parent9092490376f0c4b14989824b147e8318557e0c2b (diff)
downloademacs-61bd39a3bd199e2ad73dfa74105ff062dcf26580.tar.gz
(wait_reading_process_output): Always check status when in batch mode.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c
index 26a18545f8e..50952bf1647 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4411,8 +4411,11 @@ wait_reading_process_output (time_limit, microsecs, read_kbd, do_display,
/* If status of something has changed, and no input is
available, notify the user of the change right away. After
this explicit check, we'll let the SIGCHLD handler zap
- timeout to get our attention. */
- if (update_tick != process_tick && do_display)
+ timeout to get our attention. When Emacs is run
+ interactively, only do this with a nonzero DO_DISPLAY
+ argument, because status_notify triggers redisplay. */
+ if (update_tick != process_tick
+ && (do_display || noninteractive))
{
SELECT_TYPE Atemp;
#ifdef NON_BLOCKING_CONNECT