From bb385a92ec4f8f5bbc93641aaa274bd735826574 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 12 Oct 2012 17:19:54 +0200 Subject: Fix bug #12587 with slow startup on MS-Windows with Netlogon service. src/fileio.c (check_existing): New function. (make_temp_name, Ffile_exists_p, Ffile_writable_p): Call it instead of calling 'stat', when what's needed is to check whether a file exists. This avoids expensive system calls on MS-Windows. src/w32.c (init_environment): Call 'check_existing' instead of 'stat'. src/lread.c (openp) [WINDOWSNT]: Call 'access' instead of 'stat' to determine whether a file exists and is not a directory. src/lisp.h (check_existing): Add prototype. --- src/ChangeLog | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/ChangeLog') diff --git a/src/ChangeLog b/src/ChangeLog index 47b2de24844..76f0226c0bf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,19 @@ +2012-10-12 Eli Zaretskii + + * fileio.c (check_existing): New function. + (make_temp_name, Ffile_exists_p, Ffile_writable_p): Call it + instead of calling 'stat', when what's needed is to check whether + a file exists. This avoids expensive system calls on MS-Windows. + (Bug#12587) + + * w32.c (init_environment): Call 'check_existing' instead of + 'stat'. + + * lread.c (openp) [WINDOWSNT]: Call 'access' instead of 'stat' to + determine whether a file exists and is not a directory. + + * lisp.h (check_existing): Add prototype. + 2012-10-12 Jan Djärv * nsfont.m (nsfont_open): Remove font cache, it is not GC correct. -- cgit v1.3