remove useless sync() calls

unless we had serious kernel bugs, those sync() calls
serve no useful purpose
This commit is contained in:
Stefan Seyfried
2015-02-25 21:43:41 +01:00
parent 22dd798325
commit ae21edb141
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)