aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2007-01-09 08:53:26 +0000
committerYAMAMOTO Mitsuharu2007-01-09 08:53:26 +0000
commitd277f1f71e7377a1265e7853d06d9d0a249870b7 (patch)
tree3fb53943c6216982790968a9af1d44e2b61be2e8 /src
parent333f3572bc800e2ada2ea76861c9fbe10b265f18 (diff)
downloademacs-d277f1f71e7377a1265e7853d06d9d0a249870b7.tar.gz
emacs-d277f1f71e7377a1265e7853d06d9d0a249870b7.zip
(Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT
around mkstemp.
Diffstat (limited to 'src')
-rw-r--r--src/callproc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c
index c56d2fb679b..6cbc0cf124f 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -1104,7 +1104,11 @@ usage: (call-process-region START END PROGRAM &optional DELETE BUFFER DISPLAY &r
1104 1104
1105#ifdef HAVE_MKSTEMP 1105#ifdef HAVE_MKSTEMP
1106 { 1106 {
1107 int fd = mkstemp (tempfile); 1107 int fd;
1108
1109 BLOCK_INPUT;
1110 fd = mkstemp (tempfile);
1111 UNBLOCK_INPUT;
1108 if (fd == -1) 1112 if (fd == -1)
1109 report_file_error ("Failed to open temporary file", 1113 report_file_error ("Failed to open temporary file",
1110 Fcons (Vtemp_file_name_pattern, Qnil)); 1114 Fcons (Vtemp_file_name_pattern, Qnil));