From d8f4eede64288067e71d48a695e6734f4c7d9f9c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 22 Apr 2007 03:59:18 +0000 Subject: Call sync with the lock held before allowing a new party to come along and start writing to config.xml. --- etc/inc/config.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/inc/config.inc') 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; } -- cgit v1.1