aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c6
1 files changed, 4 insertions, 2 deletions
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