From: YAMAMOTO Mitsuharu Date: Tue, 20 Mar 2007 08:50:10 +0000 (+0000) Subject: (record_char): Add BLOCK_INPUT around fwrite. X-Git-Tag: emacs-pretest-22.0.97~275 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=34f5c10fbce94075bfbbfa904c9cc1d595893ad8;p=emacs.git (record_char): Add BLOCK_INPUT around fwrite. (Fopen_dribble_file): Add BLOCK_INPUT around fclose. --- 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))