summaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-02-21 12:16:12 +0100
committerBram Moolenaar <Bram@vim.org>2019-02-21 12:16:12 +0100
commit9166838420c2e2029270c4683f68aecd3db5a484 (patch)
treedba16d0fbdb4aeb3dab9d127fbfa3e3f0b4f156c /src/fileio.c
parent8caa43d8159555076af6acc242185f5475c1d199 (diff)
patch 8.1.0961: Mac: fsync may fail sometimesv8.1.0961
Problem: Mac: fsync may fail sometimes. Solution: Do not check errno. (Yee Cheng Chin, closes #4025)
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index ab2c3fd01d..4060f69d3f 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -5135,7 +5135,7 @@ vim_fsync(int fd)
# ifdef MACOS_X
r = fcntl(fd, F_FULLFSYNC);
- if (r != 0 && (errno == ENOTTY || errno == ENOTSUP))
+ if (r != 0) // F_FULLFSYNC not working or not supported
# endif
r = fsync(fd);
return r;