Patch 8.0.1335
Problem: Writefile() using fsync() may give an error for a device.
(Yasuhiro Matsumoto)
Solution: Ignore fsync() failing. (closes #2373)
Files: src/evalfunc.c
*** ../vim-8.0.1334/src/evalfunc.c 2017-11-19 20:13:01.614509135 +0100
--- src/evalfunc.c 2017-11-25 14:33:45.019939207 +0100
***************
*** 13449,13456 ****
if (write_list(fd, list, binary) == FAIL)
ret = -1;
#ifdef HAVE_FSYNC
! else if (do_fsync && fsync(fileno(fd)) != 0)
! EMSG(_(e_fsync));
#endif
fclose(fd);
}
--- 13449,13458 ----
if (write_list(fd, list, binary) == FAIL)
ret = -1;
#ifdef HAVE_FSYNC
! else if (do_fsync)
! /* Ignore the error, the user wouldn't know what to do about it.
! * May happen for a device. */
! ignored = fsync(fileno(fd));
#endif
fclose(fd);
}
*** ../vim-8.0.1334/src/version.c 2017-11-25 14:19:39.284798632 +0100
--- src/version.c 2017-11-25 14:34:45.223595041 +0100
***************
*** 773,774 ****
--- 773,776 ----
{ /* Add new patch number below this line */
+ /**/
+ 1335,
/**/
--
Give a man a computer program and you give him a headache,
but teach him to program computers and you give him the power
to create headaches for others for the rest of his life...
R. B. Forest
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.