# HG changeset patch
# User Richard M. Stallman <rms@gnu.org>
# Date 1039297190 0
# Node ID 279d729bd941c657c5c5e65d271471d76f2d66bf
# Parent  ccd782f27e54789170cd627db6170d75ad8f2a2e
(Fcopy_file): Set immediate_quit around emacs_open call.

diff -r ccd782f27e54 -r 279d729bd941 src/fileio.c
--- a/src/fileio.c	Sat Dec 07 21:39:18 2002 +0000
+++ b/src/fileio.c	Sat Dec 07 21:39:50 2002 +0000
@@ -2429,7 +2429,10 @@
       SetFileAttributes (filename, attributes);
     }
 #else /* not WINDOWSNT */
+  immediate_quit = 1;
   ifd = emacs_open (SDATA (encoded_file), O_RDONLY, 0);
+  immediate_quit = 0;
+
   if (ifd < 0)
     report_file_error ("Opening input file", Fcons (file, Qnil));