]> git.eshelyaron.com Git - emacs.git/commitdiff
(update_frame): Only call sleep (outq / baud_rate) if baud_rate >= OUTQ.
authorRoland McGrath <roland@gnu.org>
Wed, 15 Dec 1993 01:59:43 +0000 (01:59 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 15 Dec 1993 01:59:43 +0000 (01:59 +0000)
Calling sleep (0) causes a gratuitous delay on some systems.

src/dispnew.c

index 5a9829f5f8d6e5ad4aeba3d0b1be95a1a01e2cf0..651e920969352ab678047bc3cac23236ceab98b3 100644 (file)
@@ -1065,7 +1065,7 @@ update_frame (f, force, inhibit_hairy_id)
                        outq = PENDING_OUTPUT_COUNT (stdout);
 #endif
                      outq *= 10;
-                     if (baud_rate > 0)
+                     if (baud_rate >= outq)
                        sleep (outq / baud_rate);
                    }
                }