From 839f78b9e514dbfe33f3203c556700732b707a56 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Sun, 22 Feb 2015 19:01:12 +0300 Subject: [PATCH] eitd/xmlutil.cpp: add sync() after epg save is done --- src/eitd/xmlutil.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/eitd/xmlutil.cpp b/src/eitd/xmlutil.cpp index 056235116..7dd9cdb8f 100644 --- a/src/eitd/xmlutil.cpp +++ b/src/eitd/xmlutil.cpp @@ -562,11 +562,10 @@ _done: write_indexxml_footer(indexfile); fclose(indexfile); - printf("[sectionsd] Writing Information finished\n"); - filename = (std::string)epgdir + "/index.xml"; - rename(tmpname.c_str(), filename.c_str()); + sync(); + printf("[sectionsd] Writing Information finished\n"); return ; }