comparison src/dispnew.c @ 5218:a1009fb6aa1a

(update_frame): Only call sleep (outq / baud_rate) if baud_rate >= OUTQ. Calling sleep (0) causes a gratuitous delay on some systems.
author Roland McGrath <roland@gnu.org>
date Wed, 15 Dec 1993 01:59:43 +0000
parents c4bf07b226be
children db2e7e6a488e
comparison
equal deleted inserted replaced
5217:36bd4445894c 5218:a1009fb6aa1a
1063 /* Probably not a tty. Ignore the error and reset 1063 /* Probably not a tty. Ignore the error and reset
1064 * the outq count. */ 1064 * the outq count. */
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 }
1072 if ((i - 1) % preempt_count == 0) 1072 if ((i - 1) % preempt_count == 0)
1073 detect_input_pending (); 1073 detect_input_pending ();