mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do it the right way and lock the config file before restarting dhcpd
This commit is contained in:
parent
e358460d5a
commit
e4da84d08c
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user