Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-02-11 04:36:48 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-02-11 04:36:48 +0400
commitf06a7a1d22fc446818b7e0282c510040bf3b08c8 (patch)
treed099112d3e99e0e5752704d85b4b93041971ecf4 /core/CliMulti.php
parent113e403a9e5a6ccab2762fc321382b540b51f8d9 (diff)
refs #4610 Pid => Process
Diffstat (limited to 'core/CliMulti.php')
-rw-r--r--core/CliMulti.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/core/CliMulti.php b/core/CliMulti.php
index 9b607d6fa5..0c9af59475 100644
--- a/core/CliMulti.php
+++ b/core/CliMulti.php
@@ -7,13 +7,13 @@
*/
namespace Piwik;
-use Piwik\CliMulti\Pid;
+use Piwik\CliMulti\Process;
use Piwik\CliMulti\Output;
class CliMulti {
/**
- * @var \Piwik\CliMulti\Pid[]
+ * @var \Piwik\CliMulti\Process[]
*/
private $pids = array();
@@ -49,7 +49,7 @@ class CliMulti {
shell_exec($command . $appendix);
- $this->pids[] = new Pid($pid);
+ $this->pids[] = new Process($pid);
$this->outputs[] = new Output($output);
}
}
@@ -106,6 +106,10 @@ class CliMulti {
return md5($command . microtime(true) . rand(0, 99999));
}
+ /**
+ * What is missing under windows? Detection whether a process is still running in Process::isProcessStillRunning
+ * and how to send a process into background in start()
+ */
private function supportsAsync()
{
return !SettingsServer::isWindows();