summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp_edit.php
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-09-17 13:42:31 +0000
committerBill Marquette <billm@pfsense.org>2005-09-17 13:42:31 +0000
commite4da84d08c300ca5e44dead79399b7f4c4f99ec1 (patch)
tree5b7045a681fd07376da2d5d52216d41dcb2b657c /usr/local/www/services_dhcp_edit.php
parente358460d5a0e9df4f471e3508eb1e1c35379caf3 (diff)
downloadpfsense-e4da84d08c300ca5e44dead79399b7f4c4f99ec1.zip
pfsense-e4da84d08c300ca5e44dead79399b7f4c4f99ec1.tar.gz
Do it the right way and lock the config file before restarting dhcpd
Diffstat (limited to 'usr/local/www/services_dhcp_edit.php')
-rwxr-xr-xusr/local/www/services_dhcp_edit.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php
index 4a284fd..d1d6ac2 100755
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -126,8 +126,13 @@ if ($_POST) {
if (isset($config['dhcpd'][$if]['staticarp']))
interfaces_staticarp_configure($if);
- services_dhcpd_configure();
-
+ $retval = 0;
+ config_lock();
+ $retval = services_dhcpd_configure();
+ config_unlock();
+
+ $savemsg = get_std_save_message($retval);
+
header("Location: services_dhcp.php?if={$if}");
exit;
}
OpenPOWER on IntegriCloud