summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-03-25 18:46:58 +0000
committerErmal <eri@pfsense.org>2013-03-25 18:46:58 +0000
commit7fed35c84fd98aa5c17ccaf14ac788cd3538abc6 (patch)
tree5c14ed5cf97e2c5ebb8cce2afffe841e8111393e /etc/inc/interfaces.inc
parent2269e286f4d4bb4b6fca59c6383f05a46ddbc464 (diff)
downloadpfsense-7fed35c84fd98aa5c17ccaf14ac788cd3538abc6.zip
pfsense-7fed35c84fd98aa5c17ccaf14ac788cd3538abc6.tar.gz
Give the process time to exit before running a new one
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 0841470..84c0794 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -3553,8 +3553,10 @@ function interface_dhcpv6_configure($interface = "wan", $wancfg) {
mwexec("/sbin/ifconfig {$wanif} inet6 accept_rtadv");
/* fire up rtsold for IPv6 RAs first, this backgrounds immediately. It will call dhcp6c */
- if (isvalidpid("{$g['varrun_path']}/rtsold_{$wanif}.pid"))
+ if (isvalidpid("{$g['varrun_path']}/rtsold_{$wanif}.pid")) {
killbypid("{$g['varrun_path']}/rtsold_{$wanif}.pid");
+ sleep(2);
+ }
mwexec("/usr/sbin/rtsold -1 -p {$g['varrun_path']}/rtsold_{$wanif}.pid -O {$g['varetc_path']}/rtsold_{$wanif}_script.sh {$wanif}");
/* NOTE: will be called from rtsold invoked script
OpenPOWER on IntegriCloud