aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/print.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/print.c b/src/print.c
index e3f60e06fcc..4110ef32407 100644
--- a/src/print.c
+++ b/src/print.c
@@ -33,6 +33,7 @@ Boston, MA 02110-1301, USA. */
33#include "dispextern.h" 33#include "dispextern.h"
34#include "termchar.h" 34#include "termchar.h"
35#include "intervals.h" 35#include "intervals.h"
36#include "blockinput.h"
36 37
37Lisp_Object Vstandard_output, Qstandard_output; 38Lisp_Object Vstandard_output, Qstandard_output;
38 39
@@ -976,7 +977,11 @@ append to existing target file. */)
976 Lisp_Object file, append; 977 Lisp_Object file, append;
977{ 978{
978 if (initial_stderr_stream != NULL) 979 if (initial_stderr_stream != NULL)
979 fclose (stderr); 980 {
981 BLOCK_INPUT;
982 fclose (stderr);
983 UNBLOCK_INPUT;
984 }
980 stderr = initial_stderr_stream; 985 stderr = initial_stderr_stream;
981 initial_stderr_stream = NULL; 986 initial_stderr_stream = NULL;
982 987