aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab2007-10-06 08:15:26 +0000
committerAndreas Schwab2007-10-06 08:15:26 +0000
commit6cff77fd8a2d80eae2ae9bb8be115455cd0de418 (patch)
tree232d8a498e6f2a475ab2c1acdf4257feba561749 /src
parent590394eb5b47c7da5199260a26b0ce10fb536927 (diff)
downloademacs-6cff77fd8a2d80eae2ae9bb8be115455cd0de418.tar.gz
emacs-6cff77fd8a2d80eae2ae9bb8be115455cd0de418.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 b9ff2fafbe2..cfdf17f0842 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-04 Juanma Barranquero <lekktu@gmail.com> 52007-10-04 Juanma Barranquero <lekktu@gmail.com>
2 6
3 * image.c (syms_of_image) <image-types>: Fix typo in docstring. 7 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
diff --git a/src/fileio.c b/src/fileio.c
index b76d243346e..29d12a0b0c3 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -5359,8 +5359,10 @@ This does code conversion according to the value of
5359 it, and that means the fsync here is not crucial for autosave files. */ 5359 it, and that means the fsync here is not crucial for autosave files. */
5360 if (!auto_saving && !write_region_inhibit_fsync && fsync (desc) < 0) 5360 if (!auto_saving && !write_region_inhibit_fsync && fsync (desc) < 0)
5361 { 5361 {
5362 /* If fsync fails with EINTR, don't treat that as serious. */ 5362 /* If fsync fails with EINTR, don't treat that as serious. Also
5363 if (errno != EINTR) 5363 ignore EINVAL which happens when fsync is not supported on this
5364 file. */
5365 if (errno != EINTR && errno != EINVAL)
5364 failure = 1, save_errno = errno; 5366 failure = 1, save_errno = errno;
5365 } 5367 }
5366#endif 5368#endif