remove useless sync() calls

unless we had serious kernel bugs, those sync() calls
serve no useful purpose


Origin commit data
------------------
Branch: ni/coolstream
Commit: ae21edb141
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-25 (Wed, 25 Feb 2015)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2015-02-25 21:43:41 +01:00
parent f5d3bb2d9f
commit fa09f58664
3 changed files with 3 additions and 3 deletions

View File

@@ -565,7 +565,7 @@ _done:
filename = (std::string)epgdir + "/index.xml";
rename(tmpname.c_str(), filename.c_str());
sync();
// sync();
printf("[sectionsd] Writing Information finished\n");
return ;
}

View File

@@ -1200,7 +1200,7 @@ _remount:
safe_mkdir(cmd);
snprintf(cmd, sizeof(cmd), "%s/plugins", dst.c_str());
safe_mkdir(cmd);
sync();
// sync();
#if HAVE_TRIPLEDRAGON
/* on the tripledragon, we mount via fstab, so we need to add an
fstab entry for dst */

View File

@@ -1020,7 +1020,7 @@ void CServiceManager::CopyFile(char * from, char * to)
strcat(cmd, " ");
strcat(cmd, to);
system(cmd);
sync();
// sync();
}
void CServiceManager::WriteSatHeader(FILE * fd, sat_config_t &config)