summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-08-29 17:13:15 +0300
committerColin Walters <walters@verbum.org>2008-10-01 14:59:51 -0400
commit6531968a0b62959633627f9a74a6f19f2741261d (patch)
treeec8bf1cbc87e975110e5c86cec1062dec3820b65 /tools
parent4fb160094526f57a7cc44deb63ba0f2c76f0384f (diff)
Bug 17352: synchronize the file before renaming
Dbus is doing atomic file updates by copying them, changing the copy, and re-naming them. However, it does not synchronize the file before re-naming, which results in corruption in case of unclean reboots. The reason for this is that file-systems have write-back cache and they postpone writing data to the media. This patch adds the missed fsync() for the Unix part. I do not have windows so cannot provide a windows port fix. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: Colin Walters <walters@verbum.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions