Commit 57aedcca1046f41e9d713f2922c40924b4c556a3

Authored by Neil Blakey-Milner
1 parent d7075b24

Allow for pexec to use popen on request.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4916 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 4 additions and 0 deletions
lib/util/ktutil.inc
... ... @@ -182,6 +182,10 @@ class KTUtil {
182 182 if (OS_WINDOWS) {
183 183 $sCmd = "start /b \"kt\" " . $sCmd;
184 184 }
  185 + $sPopen = KTUtil::arrayGet($aOptions, 'popen');
  186 + if ($sPopen) {
  187 + return popen($sCmd, $sPopen);
  188 + }
185 189 return exec($sCmd);
186 190 }
187 191 // }}}
... ...