diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 2c88a64976d..714c41410f7 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2714,7 +2714,9 @@ to the file, instead of any buffer contents, and END is ignored.") | |||
| 2714 | #ifdef HAVE_FSYNC | 2714 | #ifdef HAVE_FSYNC |
| 2715 | /* Note fsync appears to change the modtime on BSD4.2 (both vax and sun). | 2715 | /* Note fsync appears to change the modtime on BSD4.2 (both vax and sun). |
| 2716 | Disk full in NFS may be reported here. */ | 2716 | Disk full in NFS may be reported here. */ |
| 2717 | if (fsync (desc) < 0) | 2717 | /* mib says that closing the file will try to write as fast as NFS can do |
| 2718 | it, and that means the fsync here is not crucial for autosave files. */ | ||
| 2719 | if (!auto_saving && fsync (desc) < 0) | ||
| 2718 | failure = 1, save_errno = errno; | 2720 | failure = 1, save_errno = errno; |
| 2719 | #endif | 2721 | #endif |
| 2720 | 2722 | ||