changeset 15910:da4d1f69374e v8.1.0961

patch 8.1.0961: Mac: fsync may fail sometimes commit https://github.com/vim/vim/commit/9166838420c2e2029270c4683f68aecd3db5a484 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 21 12:16:12 2019 +0100 patch 8.1.0961: Mac: fsync may fail sometimes Problem: Mac: fsync may fail sometimes. Solution: Do not check errno. (Yee Cheng Chin, closes https://github.com/vim/vim/issues/4025)
author Bram Moolenaar <Bram@vim.org>
date Thu, 21 Feb 2019 12:30:08 +0100
parents dae10aa1681d
children 953e39578078
files src/fileio.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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,