Skip to content

Commit

Permalink
patch 8.1.0961: Mac: fsync may fail sometimes
Browse files Browse the repository at this point in the history
Problem:    Mac: fsync may fail sometimes.
Solution:   Do not check errno. (Yee Cheng Chin, closes #4025)
  • Loading branch information
brammool committed Feb 21, 2019
1 parent 8caa43d commit 9166838
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/fileio.c
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -779,6 +779,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
961,
/**/
960,
/**/
Expand Down

0 comments on commit 9166838

Please sign in to comment.