mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-21 18:23:59 +00:00
(update_frame): Make preempt_count positive.
Defend against negative baud_rate.
This commit is contained in:
parent
7fb08f691e
commit
d88c2b9e63
@ -955,6 +955,9 @@ update_frame (f, force, inhibit_hairy_id)
|
||||
register int downto, leftmost;
|
||||
#endif
|
||||
|
||||
if (preempt_count <= 0)
|
||||
preempt_count = 1;
|
||||
|
||||
if (FRAME_HEIGHT (f) == 0) abort (); /* Some bug zeros some core */
|
||||
|
||||
detect_input_pending ();
|
||||
@ -1025,7 +1028,8 @@ update_frame (f, force, inhibit_hairy_id)
|
||||
outq = PENDING_OUTPUT_COUNT (stdout);
|
||||
#endif
|
||||
outq *= 10;
|
||||
sleep (outq / baud_rate);
|
||||
if (baud_rate > 0)
|
||||
sleep (outq / baud_rate);
|
||||
}
|
||||
}
|
||||
if ((i - 1) % preempt_count == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user