diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-01-26 15:46:57 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-01-26 15:46:57 +0100 |
| commit | b7013fa7e549162af478d58ffc1f5ed369f58408 (patch) | |
| tree | dd36b399dcfd4de3be22ee6b276e08970470aecc /lua/lexers/sml.lua | |
| parent | 33ecbde6688ef887fa9ab4d2bddad9a021adff3b (diff) | |
| download | vis-b7013fa7e549162af478d58ffc1f5ed369f58408.tar.gz vis-b7013fa7e549162af478d58ffc1f5ed369f58408.tar.xz | |
text: ignore fsync(2) errors on unsupported directory descriptors
When saving a file by atomically renaming it to its final destination,
we fsync(2) the parent directory to make sure the new directory entry
is persisted. However, not all file systems support fsync on file
descriptors referring to directories. As a result the save operation
fails and subsequent attempts result in warnings regarding outdated file
content, even though the data has most likely been successfully written.
Ignoring this particular error seems fine, because it is a permanent
limitation of the file system and not a temporary failure.
Fixes #792
Diffstat (limited to 'lua/lexers/sml.lua')
0 files changed, 0 insertions, 0 deletions
