Mercurial > emacs
diff src/callproc.c @ 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 | 38f9c8fca7b4 |
children | 3d45362f1d38 32073cbc5eb6 |
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));