diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-02-11 04:36:48 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-02-11 04:36:48 +0400 |
commit | f06a7a1d22fc446818b7e0282c510040bf3b08c8 (patch) | |
tree | d099112d3e99e0e5752704d85b4b93041971ecf4 /core/CliMulti.php | |
parent | 113e403a9e5a6ccab2762fc321382b540b51f8d9 (diff) |
refs #4610 Pid => Process
Diffstat (limited to 'core/CliMulti.php')
-rw-r--r-- | core/CliMulti.php | 10 |
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(); |