0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

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)
This commit is contained in:
Bram Moolenaar
2019-02-21 12:16:12 +01:00
parent 8caa43d815
commit 9166838420
2 changed files with 3 additions and 1 deletions

View File

@@ -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;

View File

@@ -779,6 +779,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
961,
/**/
960,
/**/