aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoland McGrath1993-12-15 01:59:43 +0000
committerRoland McGrath1993-12-15 01:59:43 +0000
commit4d9c0ca4d6396f194d212cd79c456ba28d2ce283 (patch)
treeb6022b3dc41cfe1712acfe9260f8c8ba4c9d0afa /src
parenta067cd24a57c0c9115bff47cc4cd13430c104f3a (diff)
downloademacs-4d9c0ca4d6396f194d212cd79c456ba28d2ce283.tar.gz
emacs-4d9c0ca4d6396f194d212cd79c456ba28d2ce283.zip
(update_frame): Only call sleep (outq / baud_rate) if baud_rate >= OUTQ.
Calling sleep (0) causes a gratuitous delay on some systems.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 5a9829f5f8d..651e9209693 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -1065,7 +1065,7 @@ update_frame (f, force, inhibit_hairy_id)
1065 outq = PENDING_OUTPUT_COUNT (stdout); 1065 outq = PENDING_OUTPUT_COUNT (stdout);
1066#endif 1066#endif
1067 outq *= 10; 1067 outq *= 10;
1068 if (baud_rate > 0) 1068 if (baud_rate >= outq)
1069 sleep (outq / baud_rate); 1069 sleep (outq / baud_rate);
1070 } 1070 }
1071 } 1071 }