diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-22 03:59:10 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-22 03:59:10 +0000 |
commit | cffd2ea49bfab10825340242704301c2cd472408 (patch) | |
tree | 5eeeda726f6522989bac644fe6769ec0cd56aa83 /etc/inc/config.inc | |
parent | db15769e52a817a62c7bac987fd5f72f17e205be (diff) | |
download | pfsense-cffd2ea49bfab10825340242704301c2cd472408.zip pfsense-cffd2ea49bfab10825340242704301c2cd472408.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.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 50f70da..760f26e 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -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; } |