1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-11 09:21:23 -07:00

Merge from origin/emacs-29

e59216d3be * Invoke spawed Emacs processes with '-Q' when native com...
777b383dd0 Fix Eshell electric slash when used from the root directo...
c088cdad9e Fix the --without-all build with tree-sitter
ec9fbad908 Fix write-region to null device on MS-Windows
f35da11199 message: Do not default to eudc-capf-complete yet
98c16a8c88 ; * lisp/tab-bar.el: Remaining renaming of "fixed-width" ...
d76d7a3beb whitespace: Avoid mutating original buffer's markers in c...
This commit is contained in:
Stefan Kangas 2022-12-22 06:30:09 +01:00
commit 08bb91c7df
8 changed files with 113 additions and 23 deletions

View file

@ -5376,12 +5376,16 @@ write_region (Lisp_Object start, Lisp_Object end, Lisp_Object filename,
{
/* Transfer data and metadata to disk, retrying if interrupted.
fsync can report a write failure here, e.g., due to disk full
under NFS. But ignore EINVAL, which means fsync is not
supported on this file. */
under NFS. But ignore EINVAL (and EBADF on Windows), which
means fsync is not supported on this file. */
while (fsync (desc) != 0)
if (errno != EINTR)
{
if (errno != EINVAL)
if (errno != EINVAL
#ifdef WINDOWSNT
&& errno != EBADF
#endif
)
ok = 0, save_errno = errno;
break;
}