mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
db15769e52
commit
cffd2ea49b
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user