diff options
Diffstat (limited to 'src/callproc.c')
| -rw-r--r-- | src/callproc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c index bc9c8d67d11..eb7f8ff6252 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -1107,7 +1107,11 @@ usage: (call-process-region START END PROGRAM &optional DELETE BUFFER DISPLAY &r | |||
| 1107 | 1107 | ||
| 1108 | #ifdef HAVE_MKSTEMP | 1108 | #ifdef HAVE_MKSTEMP |
| 1109 | { | 1109 | { |
| 1110 | int fd = mkstemp (tempfile); | 1110 | int fd; |
| 1111 | |||
| 1112 | BLOCK_INPUT; | ||
| 1113 | fd = mkstemp (tempfile); | ||
| 1114 | UNBLOCK_INPUT; | ||
| 1111 | if (fd == -1) | 1115 | if (fd == -1) |
| 1112 | report_file_error ("Failed to open temporary file", | 1116 | report_file_error ("Failed to open temporary file", |
| 1113 | Fcons (Vtemp_file_name_pattern, Qnil)); | 1117 | Fcons (Vtemp_file_name_pattern, Qnil)); |