summaryrefslogtreecommitdiff
path: root/src/callproc.c
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2007-01-09 08:53:26 +0000
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2007-01-09 08:53:26 +0000
commitd277f1f71e7377a1265e7853d06d9d0a249870b7 (patch)
tree3fb53943c6216982790968a9af1d44e2b61be2e8 /src/callproc.c
parent333f3572bc800e2ada2ea76861c9fbe10b265f18 (diff)
downloademacs-d277f1f71e7377a1265e7853d06d9d0a249870b7.tar.gz
(Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT
around mkstemp.
Diffstat (limited to 'src/callproc.c')
-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
#ifdef HAVE_MKSTEMP
{
- int fd = mkstemp (tempfile);
+ int fd;
+
+ BLOCK_INPUT;
+ fd = mkstemp (tempfile);
+ UNBLOCK_INPUT;
if (fd == -1)
report_file_error ("Failed to open temporary file",
Fcons (Vtemp_file_name_pattern, Qnil));