diff options
author | redmatrix <git@macgirvin.com> | 2016-01-23 16:25:38 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-01-23 16:25:38 -0800 |
commit | 7b73a689e1b8bc7de96b30f8080d6a7fb479e7ae (patch) | |
tree | 6b762b2751685a44cbebb4b2e8ddfceec36e9090 /boot.php | |
parent | 945689d01c52871293c921329864ce3c5c7dece2 (diff) | |
download | volse-hubzilla-7b73a689e1b8bc7de96b30f8080d6a7fb479e7ae.tar.gz volse-hubzilla-7b73a689e1b8bc7de96b30f8080d6a7fb479e7ae.tar.bz2 volse-hubzilla-7b73a689e1b8bc7de96b30f8080d6a7fb479e7ae.zip |
provide option to use exec in proc_run
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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)); + } } /** |