mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
remove useless sync() calls
unless we had serious kernel bugs, those sync() calls serve no useful purpose
This commit is contained in:
@@ -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 ;
|
||||
}
|
||||
|
@@ -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 */
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user