summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-22 03:59:18 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-22 03:59:18 +0000
commitd8f4eede64288067e71d48a695e6734f4c7d9f9c (patch)
tree199a627e8776d5c766c84b2d3af7d96001ab2d93 /etc/inc/config.inc
parentf94d6c807055ce9e701e1e661f205964c91a73b4 (diff)
downloadpfsense-d8f4eede64288067e71d48a695e6734f4c7d9f9c.zip
pfsense-d8f4eede64288067e71d48a695e6734f4c7d9f9c.tar.gz
Call sync with the lock held before allowing a new party to come along and start writing to config.xml.
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index af067e0..0709641 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -1091,11 +1091,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;
}
OpenPOWER on IntegriCloud