aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index bb4bc977d..9d80eedb4 100755
--- a/boot.php
+++ b/boot.php
@@ -1723,8 +1723,12 @@ function proc_run($cmd){
$cmd = "cmd /c start \"title\" /D \"$cwd\" /b $cmdline";
proc_close(proc_open($cmd, array(), $foo));
}
- else
- proc_close(proc_open($cmdline ." &", array(), $foo));
+ else {
+ if(get_config('system','proc_run_use_exec'))
+ exec($cmdline . ' > /dev/null &');
+ else
+ proc_close(proc_open($cmdline ." &", array(), $foo));
+ }
}
/**