# HG changeset patch # User Bram Moolenaar # Date 1550748608 -3600 # Node ID da4d1f69374e2d5f42f1b0257b22979aa91aed63 # Parent dae10aa1681dfddc81cc8cd31a93664aaf24e540 patch 8.1.0961: Mac: fsync may fail sometimes commit https://github.com/vim/vim/commit/9166838420c2e2029270c4683f68aecd3db5a484 Author: Bram Moolenaar 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) diff --git a/src/fileio.c b/src/fileio.c --- 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 --- 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,