mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +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";
|
filename = (std::string)epgdir + "/index.xml";
|
||||||
rename(tmpname.c_str(), filename.c_str());
|
rename(tmpname.c_str(), filename.c_str());
|
||||||
|
|
||||||
sync();
|
// sync();
|
||||||
printf("[sectionsd] Writing Information finished\n");
|
printf("[sectionsd] Writing Information finished\n");
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
@@ -1200,7 +1200,7 @@ _remount:
|
|||||||
safe_mkdir(cmd);
|
safe_mkdir(cmd);
|
||||||
snprintf(cmd, sizeof(cmd), "%s/plugins", dst.c_str());
|
snprintf(cmd, sizeof(cmd), "%s/plugins", dst.c_str());
|
||||||
safe_mkdir(cmd);
|
safe_mkdir(cmd);
|
||||||
sync();
|
// sync();
|
||||||
#if HAVE_TRIPLEDRAGON
|
#if HAVE_TRIPLEDRAGON
|
||||||
/* on the tripledragon, we mount via fstab, so we need to add an
|
/* on the tripledragon, we mount via fstab, so we need to add an
|
||||||
fstab entry for dst */
|
fstab entry for dst */
|
||||||
|
@@ -1020,7 +1020,7 @@ void CServiceManager::CopyFile(char * from, char * to)
|
|||||||
strcat(cmd, " ");
|
strcat(cmd, " ");
|
||||||
strcat(cmd, to);
|
strcat(cmd, to);
|
||||||
system(cmd);
|
system(cmd);
|
||||||
sync();
|
// sync();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CServiceManager::WriteSatHeader(FILE * fd, sat_config_t &config)
|
void CServiceManager::WriteSatHeader(FILE * fd, sat_config_t &config)
|
||||||
|
Reference in New Issue
Block a user