aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/boot.php b/boot.php
index d6c02ecc0..b80b76a8a 100755
--- a/boot.php
+++ b/boot.php
@@ -1728,10 +1728,10 @@ function proc_run($cmd){
proc_close(proc_open($cmd, array(), $foo));
}
else {
- if(get_config('system','proc_run_use_exec'))
- exec($cmdline . ' > /dev/null &');
- else
+ if(get_config('system','use_proc_open'))
proc_close(proc_open($cmdline ." &", array(), $foo));
+ else
+ exec($cmdline . ' > /dev/null &');
}
}