diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-09-09 17:52:34 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-09-09 17:52:34 -0300 |
commit | d9d1bd20c8caa5f12bb95b0af7fced1ec75473eb (patch) | |
tree | 9d8ec242fb2baa2f6a482c7eca1b85eedbde02a8 /usr | |
parent | 397e40d52ab44daee99de73970e0ae2e70cce346 (diff) | |
download | pfsense-d9d1bd20c8caa5f12bb95b0af7fced1ec75473eb.zip pfsense-d9d1bd20c8caa5f12bb95b0af7fced1ec75473eb.tar.gz |
Implement a function to kill dhclient process, sometimes it takes a little time to die, so use a sleep(1) there
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/interfaces.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index e1d05c0..6aa0014 100644 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -797,9 +797,7 @@ if ($_POST['apply']) { $wancfg['if'] = $a_ppps[$pppid]['ports']; unset($a_ppps[$pppid]); } else if ($wancfg['ipaddr'] == "dhcp") { - $pid = find_dhclient_process($wancfg['if']); - if($pid) - posix_kill($pid, SIGTERM); + kill_dhclient_process($wancfg['if']); } if ($wancfg['ipaddrv6'] == "dhcp6") { $pid = find_dhcp6c_process($wancfg['if']); |