From 57aedcca1046f41e9d713f2922c40924b4c556a3 Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Tue, 14 Feb 2006 15:24:31 +0000 Subject: [PATCH] Allow for pexec to use popen on request. --- lib/util/ktutil.inc | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/lib/util/ktutil.inc b/lib/util/ktutil.inc index 955aec1..33766a7 100644 --- a/lib/util/ktutil.inc +++ b/lib/util/ktutil.inc @@ -182,6 +182,10 @@ class KTUtil { if (OS_WINDOWS) { $sCmd = "start /b \"kt\" " . $sCmd; } + $sPopen = KTUtil::arrayGet($aOptions, 'popen'); + if ($sPopen) { + return popen($sCmd, $sPopen); + } return exec($sCmd); } // }}} -- libgit2 0.21.4