From: YAMAMOTO Mitsuharu Date: Tue, 9 Jan 2007 08:53:26 +0000 (+0000) Subject: (Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT X-Git-Tag: emacs-pretest-22.0.93~203 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d277f1f71e7377a1265e7853d06d9d0a249870b7;p=emacs.git (Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT around mkstemp. --- 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));