changeset 75152:69fafc0d9959

(Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT around mkstemp.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Tue, 09 Jan 2007 08:53:26 +0000
parents c1e1e8419023
children fd0c738b5d49
files src/callproc.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/callproc.c	Tue Jan 09 07:24:08 2007 +0000
+++ b/src/callproc.c	Tue Jan 09 08:53:26 2007 +0000
@@ -1104,7 +1104,11 @@
 
 #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));