Commit 1daffa1c authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fwrite_region): Don't fsync if autosaving.

parent 0360eb4b
......@@ -2714,7 +2714,9 @@ to the file, instead of any buffer contents, and END is ignored.")
/* Note fsync appears to change the modtime on BSD4.2 (both vax and sun).
Disk full in NFS may be reported here. */
if (fsync (desc) < 0)
/* mib says that closing the file will try to write as fast as NFS can do
it, and that means the fsync here is not crucial for autosave files. */
if (!auto_saving && fsync (desc) < 0)
failure = 1, save_errno = errno;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment