]> git.eshelyaron.com Git - emacs.git/commit
Work better if stat etc. are interrupted
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Jan 2020 09:08:42 +0000 (01:08 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Jan 2020 09:21:52 +0000 (01:21 -0800)
commitb3ad638a60845f17938ff812efcf2b2edfbd8c57
treeda4d1f416f9e06fe7f3e3318dd7127a39d812bec
parent6cc1db8174bcbe4fabc3627505a7d945cae7029d
Work better if stat etc. are interrupted

Quit or retry if fstat, lstat, stat or openat fail with EINTR.
This should fix some bugs on platforms where accessing files via
NFS can fail that way (Bug#9256).
* src/dired.c (file_attributes):
* src/fileio.c (file_directory_p) [O_PATH]:
Use emacs_openat instead of openat.
* src/dired.c (file_attributes): Use emacs_fstatat instead of fstatat.
* src/fileio.c (barf_or_query_if_file_exists, Frename_file):
* src/filelock.c (rename_lock_file):
Use emacs_fstatat instead of lstat.
* src/fileio.c (file_directory_p, Ffile_regular_p, Ffile_modes)
(Ffile_newer_than_file_p, Fverify_visited_file_modtime)
(Fset_visited_file_modtime, auto_save_1):
* src/lread.c (Fload):
* src/sysdep.c (get_current_dir_name_or_unreachable):
Use emacs_fstatat instead of stat.
* src/sysdep.c (emacs_fstatat, emacs_openat): New functions.
(emacs_open): Redo in terms of emacs_open.
src/dired.c
src/fileio.c
src/filelock.c
src/lisp.h
src/lread.c
src/sysdep.c