diff options
author | Bill Marquette <billm@pfsense.org> | 2005-09-17 13:42:31 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-09-17 13:42:31 +0000 |
commit | e4da84d08c300ca5e44dead79399b7f4c4f99ec1 (patch) | |
tree | 5b7045a681fd07376da2d5d52216d41dcb2b657c /usr | |
parent | e358460d5a0e9df4f471e3508eb1e1c35379caf3 (diff) | |
download | pfsense-e4da84d08c300ca5e44dead79399b7f4c4f99ec1.zip pfsense-e4da84d08c300ca5e44dead79399b7f4c4f99ec1.tar.gz |
Do it the right way and lock the config file before restarting dhcpd
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/services_dhcp_edit.php | 9 |
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; } |