emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/fileio.c,v


From: Andreas Schwab
Subject: [Emacs-diffs] Changes to emacs/src/fileio.c,v
Date: Sat, 06 Oct 2007 08:15:10 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Andreas Schwab <schwab> 07/10/06 08:15:10

Index: fileio.c
===================================================================
RCS file: /sources/emacs/emacs/src/fileio.c,v
retrieving revision 1.591
retrieving revision 1.592
diff -u -b -r1.591 -r1.592
--- fileio.c    10 Sep 2007 09:53:32 -0000      1.591
+++ fileio.c    6 Oct 2007 08:15:09 -0000       1.592
@@ -5359,8 +5359,10 @@
      it, and that means the fsync here is not crucial for autosave files.  */
   if (!auto_saving && !write_region_inhibit_fsync && fsync (desc) < 0)
     {
-      /* If fsync fails with EINTR, don't treat that as serious.  */
-      if (errno != EINTR)
+      /* If fsync fails with EINTR, don't treat that as serious.  Also
+        ignore EINVAL which happens when fsync is not supported on this
+        file.  */
+      if (errno != EINTR && errno != EINVAL)
        failure = 1, save_errno = errno;
     }
 #endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]