]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 9 Jan 2007 08:53:26 +0000 (08:53 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 9 Jan 2007 08:53:26 +0000 (08:53 +0000)
around mkstemp.

src/callproc.c

index c56d2fb679bacf12e7b33070e159eacaa50b1a2a..6cbc0cf124fbdee2ee10409a75ed9e331f5a8ed8 100644 (file)
@@ -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));