summaryrefslogtreecommitdiff
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
parent8caa43d8159555076af6acc242185f5475c1d199 (diff)
downloadvim-git-9166838420c2e2029270c4683f68aecd3db5a484.tar.gz
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)
-rw-r--r--src/fileio.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index ab2c3fd01..4060f69d3 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;
diff --git a/src/version.c b/src/version.c
index 9157ff5f9..db9ab91f7 100644
--- a/src/version.c
+++ b/src/version.c
@@ -780,6 +780,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 961,
+/**/
960,
/**/
959,