HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0360eb4
)
(Fwrite_region): Don't fsync if autosaving.
author
Richard M. Stallman
<rms@gnu.org>
Tue, 1 Jun 1993 21:15:25 +0000
(21:15 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 1 Jun 1993 21:15:25 +0000
(21:15 +0000)
src/fileio.c
patch
|
blob
|
blame
|
history
diff --git
a/src/fileio.c
b/src/fileio.c
index
2c88a64
..
714c414
100644
(file)
--- a/
src/fileio.c
+++ b/
src/fileio.c
@@
-2714,7
+2714,9
@@
to the file, instead of any buffer contents, and END is ignored.")
#ifdef HAVE_FSYNC
/* 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;
#endif