diff options
author | Karl Heuer <kwzh@gnu.org> | 1995-07-17 22:20:32 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1995-07-17 22:20:32 +0000 |
commit | 5ff2618ca459b917312635943af1bb841abdbac3 (patch) | |
tree | d77ab68667b29fb3504507a2525ebed7ae69350e /src/fileio.c | |
parent | 7262eb28d8e8d2bd0b21d6920bf7008772c57e2c (diff) | |
download | emacs-5ff2618ca459b917312635943af1bb841abdbac3.tar.gz |
(Fwrite_region): If fsync fails with EINTR, don't
report a Lisp error.
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index d1ac36c2533..19706a19873 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3370,7 +3370,11 @@ to the file, instead of any buffer contents, and END is ignored.") /* mib says that closing the file will try to write as fast as NFS can do it, and that means the fsync here is not crucial for autosave files. */ if (!auto_saving && fsync (desc) < 0) - failure = 1, save_errno = errno; + { + /* If fsync fails with EINTR, don't treat that as serious. */ + if (errno != EINTR) + failure = 1, save_errno = errno; + } #endif /* Spurious "file has changed on disk" warnings have been |