From 1b0dd6f2ec4d37711d14e96e9ed54eb84cdf97e3 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 23 Aug 2012 16:36:13 -0700 Subject: [PATCH] handle Windows proc_run --- boot.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/boot.php b/boot.php index ef13d1fa69..7e76f332a9 100644 --- a/boot.php +++ b/boot.php @@ -1476,7 +1476,10 @@ if(! function_exists('proc_run')) { $args[$x] = escapeshellarg($args[$x]); $cmdline = implode($args," "); - proc_close(proc_open($cmdline." &",array(),$foo)); + if(get_config('system','proc_windows')) + proc_close(proc_open('start /b ' . $cmdline,array(),$foo)); + else + proc_close(proc_open($cmdline." &",array(),$foo)); } } -- 2.39.5