# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1168332806 0 # Node ID 69fafc0d9959f25aac0d34a24cdd4c0d7db501d0 # Parent c1e1e8419023daffaa12a5117f7e52fe3504c3e6 (Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT around mkstemp. diff -r c1e1e8419023 -r 69fafc0d9959 src/callproc.c --- 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));