Mercurial > vim
comparison src/fileio.c @ 36:125e80798a85 v7.0021
updated for version 7.0021
author | vimboss |
---|---|
date | Thu, 09 Dec 2004 21:34:53 +0000 |
parents | f6033dcbaf31 |
children | 410fa1a31baf |
comparison
equal
deleted
inserted
replaced
35:8f3a526c2fe1 | 36:125e80798a85 |
---|---|
3983 * original and the backup file to be lost when halting the system right | 3983 * original and the backup file to be lost when halting the system right |
3984 * after writing the file. That's because only the meta-data is | 3984 * after writing the file. That's because only the meta-data is |
3985 * journalled. Syncing the file slows down the system, but assures it has | 3985 * journalled. Syncing the file slows down the system, but assures it has |
3986 * been written to disk and we don't lose it. | 3986 * been written to disk and we don't lose it. |
3987 * For a device do try the fsync() but don't complain if it does not work | 3987 * For a device do try the fsync() but don't complain if it does not work |
3988 * (could be a pipe). */ | 3988 * (could be a pipe). |
3989 if (fsync(fd) != 0 && !device) | 3989 * If the 'fsync' option is FALSE, don't fsync(). Useful for laptops. */ |
3990 if (p_fs && fsync(fd) != 0 && !device) | |
3990 { | 3991 { |
3991 errmsg = (char_u *)_("E667: Fsync failed"); | 3992 errmsg = (char_u *)_("E667: Fsync failed"); |
3992 end = 0; | 3993 end = 0; |
3993 } | 3994 } |
3994 #endif | 3995 #endif |