diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-21 12:16:12 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-21 12:16:12 +0100 |
commit | 9166838420c2e2029270c4683f68aecd3db5a484 (patch) | |
tree | dba16d0fbdb4aeb3dab9d127fbfa3e3f0b4f156c /src/fileio.c | |
parent | 8caa43d8159555076af6acc242185f5475c1d199 (diff) | |
download | vim-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)
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 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; |