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...777b383dd0Fix Eshell electric slash when used from the root directo...c088cdad9eFix the --without-all build with tree-sitterec9fbad908Fix write-region to null device on MS-Windowsf35da11199message: Do not default to eudc-capf-complete yet98c16a8c88; * lisp/tab-bar.el: Remaining renaming of "fixed-width" ...d76d7a3bebwhitespace: Avoid mutating original buffer's markers in c...
This commit is contained in:
commit
08bb91c7df
8 changed files with 113 additions and 23 deletions
10
src/fileio.c
10
src/fileio.c
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue