From 5b6821c0d0680785e8d5466c70e2debda3df3e3a Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 1 Sep 2008 22:48:28 +0200 Subject: Use fdatasync() to make sure modification are written --- common/textfile.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/textfile.c') 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; -- cgit