diff options
| author | Karl Heuer | 1995-07-17 22:20:32 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-07-17 22:20:32 +0000 |
| commit | cb33c142fee963b88e286b235ebda9d2259c61a6 (patch) | |
| tree | 55c6b3a25c70cb1dc67aedf15c65658ac3296304 /src | |
| parent | 02ae1501743c017970f0df04870d889195b3dc83 (diff) | |
| download | emacs-cb33c142fee963b88e286b235ebda9d2259c61a6.tar.gz emacs-cb33c142fee963b88e286b235ebda9d2259c61a6.zip | |
(Fwrite_region): If fsync fails with EINTR, don't
report a Lisp error.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index d1ac36c2533..19706a19873 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -3370,7 +3370,11 @@ to the file, instead of any buffer contents, and END is ignored.") | |||
| 3370 | /* mib says that closing the file will try to write as fast as NFS can do | 3370 | /* mib says that closing the file will try to write as fast as NFS can do |
| 3371 | it, and that means the fsync here is not crucial for autosave files. */ | 3371 | it, and that means the fsync here is not crucial for autosave files. */ |
| 3372 | if (!auto_saving && fsync (desc) < 0) | 3372 | if (!auto_saving && fsync (desc) < 0) |
| 3373 | failure = 1, save_errno = errno; | 3373 | { |
| 3374 | /* If fsync fails with EINTR, don't treat that as serious. */ | ||
| 3375 | if (errno != EINTR) | ||
| 3376 | failure = 1, save_errno = errno; | ||
| 3377 | } | ||
| 3374 | #endif | 3378 | #endif |
| 3375 | 3379 | ||
| 3376 | /* Spurious "file has changed on disk" warnings have been | 3380 | /* Spurious "file has changed on disk" warnings have been |