changeset 12540:1a96888d82ed

(Fwrite_region): If fsync fails with EINTR, don't report a Lisp error.
author Karl Heuer <kwzh@gnu.org>
date Mon, 17 Jul 1995 22:20:32 +0000
parents 7f0e41dec3f0
children 33a4586124e9
files src/fileio.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Mon Jul 17 22:20:01 1995 +0000
+++ b/src/fileio.c	Mon Jul 17 22:20:32 1995 +0000
@@ -3370,7 +3370,11 @@
   /* 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