From 34f5c10fbce94075bfbbfa904c9cc1d595893ad8 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Tue, 20 Mar 2007 08:50:10 +0000 Subject: [PATCH] (record_char): Add BLOCK_INPUT around fwrite. (Fopen_dribble_file): Add BLOCK_INPUT around fclose. --- src/keyboard.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/keyboard.c b/src/keyboard.c index 1a41affc58f..f7a0c018d63 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -3525,6 +3525,7 @@ record_char (c) If you, dear reader, have a better idea, you've got the source. :-) */ if (dribble) { + BLOCK_INPUT; if (INTEGERP (c)) { if (XUINT (c) < 0x100) @@ -3550,6 +3551,7 @@ record_char (c) } fflush (dribble); + UNBLOCK_INPUT; } } @@ -10436,7 +10438,9 @@ If FILE is nil, close any open dribble file. */) { if (dribble) { + BLOCK_INPUT; fclose (dribble); + UNBLOCK_INPUT; dribble = 0; } if (!NILP (file)) -- 2.39.5