diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-22 03:59:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-22 03:59:18 +0000 |
commit | d8f4eede64288067e71d48a695e6734f4c7d9f9c (patch) | |
tree | 199a627e8776d5c766c84b2d3af7d96001ab2d93 | |
parent | f94d6c807055ce9e701e1e661f205964c91a73b4 (diff) | |
download | pfsense-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.
-rw-r--r-- | etc/inc/config.inc | 4 |
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; } |