diff options
author | Ray Strode <rstrode@redhat.com> | 2008-12-08 15:41:28 +0000 |
---|---|---|
committer | Ray Strode <halfline@src.gnome.org> | 2008-12-08 15:41:28 +0000 |
commit | 40250d82273a1e8e8872613c791afba87ea1ad13 (patch) | |
tree | 708b7bbb92cac399ae7baceb136f4dbbec270981 /gconf | |
parent | a02034a88296d59a359412b4fa393010bdf88b7a (diff) | |
download | gconf-40250d82273a1e8e8872613c791afba87ea1ad13.tar.gz |
Use fsync instead of fdatasync for portability (bug 563401). Also flush
2008-12-08 Ray Strode <rstrode@redhat.com>
* gconf/gconfd.c: (logfile_save):
Use fsync instead of fdatasync for portability
(bug 563401).
* backends/markup-tree.c (save_tree_with_locale):
Also flush and sync here before closing (Patch
from Richard Hult, bug 562976)
svn path=/trunk/; revision=2718
Diffstat (limited to 'gconf')
-rw-r--r-- | gconf/gconfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gconf/gconfd.c b/gconf/gconfd.c index 5e21ad00..2f3a9d10 100644 --- a/gconf/gconfd.c +++ b/gconf/gconfd.c @@ -1639,7 +1639,7 @@ logfile_save (void) goto out; } - if (fdatasync (fd) < 0) + if (fsync (fd) < 0) { gconf_log (GCL_WARNING, _("Could not flush saved state file '%s' to disk: %s"), |