summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-12-29 10:15:09 -0200
committerRenato Botelho <renato@netgate.com>2015-12-29 10:15:09 -0200
commit61c45d84518e1a9767fd213b878b9a46eff47e18 (patch)
tree508cc26275a788f6f41b2ea5b1cc251c2de2b3d1 /src/etc/inc/gwlb.inc
parent7e1d77241e9dba0af8f4360c6638e2fb1a17b57b (diff)
downloadpfsense-61c45d84518e1a9767fd213b878b9a46eff47e18.zip
pfsense-61c45d84518e1a9767fd213b878b9a46eff47e18.tar.gz
Change start_dpinger() to return dpinger return code
Diffstat (limited to 'src/etc/inc/gwlb.inc')
-rw-r--r--src/etc/inc/gwlb.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc
index 4c15686..8a93ce7 100644
--- a/src/etc/inc/gwlb.inc
+++ b/src/etc/inc/gwlb.inc
@@ -153,7 +153,8 @@ function start_dpinger($gateway) {
: $dpinger_defaults['losshigh']
) . " ";
- mwexec_bg("/usr/local/bin/dpinger {$params} {$gateway['monitor']}");
+ /* Redirect stdout to /dev/null to avoid exec() to wait for dpinger */
+ return mwexec("/usr/local/bin/dpinger {$params} {$gateway['monitor']} >/dev/null");
}
/*
OpenPOWER on IntegriCloud