aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-03-25 11:07:34 +0000
committerErmal <eri@pfsense.org>2010-03-25 11:07:34 +0000
commit98fe4d812fc9d5278d756cba51728e0cf9d0ab45 (patch)
tree8d01df7099dd32226147eb25c6aea79c80e21dbc /config
parent8c1e6ff7e826be34ae75e55453f58aea2d137dbc (diff)
downloadpfsense-packages-98fe4d812fc9d5278d756cba51728e0cf9d0ab45.tar.gz
pfsense-packages-98fe4d812fc9d5278d756cba51728e0cf9d0ab45.tar.bz2
pfsense-packages-98fe4d812fc9d5278d756cba51728e0cf9d0ab45.zip
Propperly check return value.
Diffstat (limited to 'config')
-rw-r--r--config/openospfd/openospfd.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/openospfd/openospfd.inc b/config/openospfd/openospfd.inc
index a41af0ec..3e3c42cb 100644
--- a/config/openospfd/openospfd.inc
+++ b/config/openospfd/openospfd.inc
@@ -176,7 +176,9 @@ function ospfd_install_conf() {
exec("chmod u+rw /usr/local/etc/ospfd.conf");
// ospfd process running? if so reload, elsewise start.
- exec("/usr/local/sbin/ospfctl reload", $rval);
+ $oarray = array();
+ $rval = 0;
+ exec("/usr/local/sbin/ospfctl reload", , $oarray, $rval);
if ($rval != 0) {
/*
* ospfd isnt actually running as nothing accepted a connection