Call sync with the lock held before allowing a new party to come along and start writing to config.xml.

This commit is contained in:
Scott Ullrich 2007-04-22 03:59:10 +00:00
parent db15769e52
commit cffd2ea49b

View File

@ -1040,11 +1040,11 @@ function write_config($desc="Unknown", $backup = true) {
fclose($fd);
}
config_unlock();
/* tell kernel to sync fs data */
mwexec("/bin/sync");
config_unlock();
return $config;
}