aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2007-03-20 08:49:37 +0000
committerYAMAMOTO Mitsuharu2007-03-20 08:49:37 +0000
commit2c1e440960fed94bb10cc3cc1e846baa109a8fc8 (patch)
tree0574b7db884d91d09f292fb5943a2adc56dfd939 /src
parentffb72b6715fe56ef4d61b3145c289811b31d2491 (diff)
downloademacs-2c1e440960fed94bb10cc3cc1e846baa109a8fc8.tar.gz
emacs-2c1e440960fed94bb10cc3cc1e846baa109a8fc8.zip
(Fopen_termscript): Add BLOCK_INPUT around fclose.
(Fsend_string_to_terminal): Add BLOCK_INPUT around fwrite.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 489c7c647e1..a7efa8249ba 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -6360,7 +6360,12 @@ FILE = nil means just close any termscript file currently open. */)
6360 (file) 6360 (file)
6361 Lisp_Object file; 6361 Lisp_Object file;
6362{ 6362{
6363 if (termscript != 0) fclose (termscript); 6363 if (termscript != 0)
6364 {
6365 BLOCK_INPUT;
6366 fclose (termscript);
6367 UNBLOCK_INPUT;
6368 }
6364 termscript = 0; 6369 termscript = 0;
6365 6370
6366 if (! NILP (file)) 6371 if (! NILP (file))
@@ -6383,6 +6388,7 @@ Control characters in STRING will have terminal-dependent effects. */)
6383{ 6388{
6384 /* ??? Perhaps we should do something special for multibyte strings here. */ 6389 /* ??? Perhaps we should do something special for multibyte strings here. */
6385 CHECK_STRING (string); 6390 CHECK_STRING (string);
6391 BLOCK_INPUT;
6386 fwrite (SDATA (string), 1, SBYTES (string), stdout); 6392 fwrite (SDATA (string), 1, SBYTES (string), stdout);
6387 fflush (stdout); 6393 fflush (stdout);
6388 if (termscript) 6394 if (termscript)
@@ -6391,6 +6397,7 @@ Control characters in STRING will have terminal-dependent effects. */)
6391 termscript); 6397 termscript);
6392 fflush (termscript); 6398 fflush (termscript);
6393 } 6399 }
6400 UNBLOCK_INPUT;
6394 return Qnil; 6401 return Qnil;
6395} 6402}
6396 6403