]> git.eshelyaron.com Git - emacs.git/commitdiff
(record_char): Add BLOCK_INPUT around fwrite.
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 20 Mar 2007 08:50:10 +0000 (08:50 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 20 Mar 2007 08:50:10 +0000 (08:50 +0000)
(Fopen_dribble_file): Add BLOCK_INPUT around fclose.

src/keyboard.c

index 1a41affc58f2881e4c87c31f98b519048824b2bc..f7a0c018d631816349f955d95a64536526fc8e32 100644 (file)
@@ -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))