Mercurial > vim
diff src/fileio.c @ 10:4e2284e71352
updated for version 7.0002
author | vimboss |
---|---|
date | Thu, 24 Jun 2004 15:53:16 +0000 |
parents | 4102fb4ea781 |
children | 4424b47a0797 |
line wrap: on
line diff
--- a/src/fileio.c +++ b/src/fileio.c @@ -3965,8 +3965,10 @@ restore_backup: * original and the backup file to be lost when halting the system right * after writing the file. That's because only the meta-data is * journalled. Syncing the file slows down the system, but assures it has - * been written to disk and we don't lose it. */ - if (fsync(fd) != 0) + * been written to disk and we don't lose it. + * For a device do try the fsync() but don't complain if it does not work + * (could be a pipe). */ + if (fsync(fd) != 0 && !device) { errmsg = (char_u *)_("E667: Fsync failed"); end = 0;