(Fsend_string_to_terminal): Add BLOCK_INPUT around fwrite.
(file)
Lisp_Object file;
{
- if (termscript != 0) fclose (termscript);
+ if (termscript != 0)
+ {
+ BLOCK_INPUT;
+ fclose (termscript);
+ UNBLOCK_INPUT;
+ }
termscript = 0;
if (! NILP (file))
{
/* ??? Perhaps we should do something special for multibyte strings here. */
CHECK_STRING (string);
+ BLOCK_INPUT;
fwrite (SDATA (string), 1, SBYTES (string), stdout);
fflush (stdout);
if (termscript)
termscript);
fflush (termscript);
}
+ UNBLOCK_INPUT;
return Qnil;
}