aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab2007-10-06 08:18:03 +0000
committerAndreas Schwab2007-10-06 08:18:03 +0000
commit41618deb16f1cc957b73a803fe27c793bd511d47 (patch)
treeafc277c5a7b5d6b52d0a69aad8ba82b3e3019389 /src
parent23b7c55689a2990eafa55af16ced18d7f41a6463 (diff)
downloademacs-41618deb16f1cc957b73a803fe27c793bd511d47.tar.gz
emacs-41618deb16f1cc957b73a803fe27c793bd511d47.zip
(Fwrite_region): Ignore EINVAL error from fsync.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/fileio.c6
2 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 656128832b6..08716763cec 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12007-10-06 Andreas Schwab <schwab@suse.de>
2
3 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
4
12007-10-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 52007-10-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 6
3 * macterm.c (mac_load_query_font): Fix missing return value. 7 * macterm.c (mac_load_query_font): Fix missing return value.
diff --git a/src/fileio.c b/src/fileio.c
index 26723fa4f3e..ac5a4f56794 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -5274,8 +5274,10 @@ This does code conversion according to the value of
5274 it, and that means the fsync here is not crucial for autosave files. */ 5274 it, and that means the fsync here is not crucial for autosave files. */
5275 if (!auto_saving && !write_region_inhibit_fsync && fsync (desc) < 0) 5275 if (!auto_saving && !write_region_inhibit_fsync && fsync (desc) < 0)
5276 { 5276 {
5277 /* If fsync fails with EINTR, don't treat that as serious. */ 5277 /* If fsync fails with EINTR, don't treat that as serious. Also
5278 if (errno != EINTR) 5278 ignore EINVAL which happens when fsync is not supported on this
5279 file. */
5280 if (errno != EINTR && errno != EINVAL)
5279 failure = 1, save_errno = errno; 5281 failure = 1, save_errno = errno;
5280 } 5282 }
5281#endif 5283#endif