Commit 4d9c0ca4 authored by Roland McGrath's avatar Roland McGrath

(update_frame): Only call sleep (outq / baud_rate) if baud_rate >= OUTQ.

Calling sleep (0) causes a gratuitous delay on some systems.
parent a067cd24
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment