diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/textfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/textfile.c b/common/textfile.c index eef0f96a..af895e58 100644 --- a/common/textfile.c +++ b/common/textfile.c @@ -271,6 +271,8 @@ unlock: flock(fd, LOCK_UN); close: + fdatasync(fd); + close(fd); errno = err; |