Do it the right way and lock the config file before restarting dhcpd

This commit is contained in:
Bill Marquette 2005-09-17 13:42:31 +00:00
parent e358460d5a
commit e4da84d08c

View File

@ -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;
}