mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
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:
@@ -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