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 [EMACS_22_BASE]


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

CVSROOT:        /sources/emacs
Module name:    emacs
Branch:         EMACS_22_BASE
Changes by:     Andreas Schwab <schwab> 07/10/06 08:17:48

Index: fileio.c
===================================================================
RCS file: /sources/emacs/emacs/src/fileio.c,v
retrieving revision 1.580.2.3
retrieving revision 1.580.2.4
diff -u -b -r1.580.2.3 -r1.580.2.4
--- fileio.c    8 Aug 2007 07:49:18 -0000       1.580.2.3
+++ fileio.c    6 Oct 2007 08:17:48 -0000       1.580.2.4
@@ -5274,8 +5274,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]