commit | 9166838420c2e2029270c4683f68aecd3db5a484 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Feb 21 12:16:12 2019 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Feb 21 12:16:12 2019 +0100 |
tree | dba16d0fbdb4aeb3dab9d127fbfa3e3f0b4f156c | |
parent | 8caa43d8159555076af6acc242185f5475c1d199 [diff] [blame] |
patch 8.1.0961: Mac: fsync may fail sometimes Problem: Mac: fsync may fail sometimes. Solution: Do not check errno. (Yee Cheng Chin, closes #4025)
diff --git a/src/fileio.c b/src/fileio.c index ab2c3fd..4060f69 100644 --- a/src/fileio.c +++ b/src/fileio.c
@@ -5135,7 +5135,7 @@ # 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;