Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
75151:c1e1e8419023 | 75152:69fafc0d9959 |
---|---|
1102 | 1102 |
1103 coding_systems = Qt; | 1103 coding_systems = Qt; |
1104 | 1104 |
1105 #ifdef HAVE_MKSTEMP | 1105 #ifdef HAVE_MKSTEMP |
1106 { | 1106 { |
1107 int fd = mkstemp (tempfile); | 1107 int fd; |
1108 | |
1109 BLOCK_INPUT; | |
1110 fd = mkstemp (tempfile); | |
1111 UNBLOCK_INPUT; | |
1108 if (fd == -1) | 1112 if (fd == -1) |
1109 report_file_error ("Failed to open temporary file", | 1113 report_file_error ("Failed to open temporary file", |
1110 Fcons (Vtemp_file_name_pattern, Qnil)); | 1114 Fcons (Vtemp_file_name_pattern, Qnil)); |
1111 else | 1115 else |
1112 close (fd); | 1116 close (fd); |