Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/console/Command/Command.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 1fec387a4317 |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
216 | 216 |
217 $this->initialize($input, $output); | 217 $this->initialize($input, $output); |
218 | 218 |
219 if (null !== $this->processTitle) { | 219 if (null !== $this->processTitle) { |
220 if (function_exists('cli_set_process_title')) { | 220 if (function_exists('cli_set_process_title')) { |
221 if (false === @cli_set_process_title($this->processTitle)) { | 221 if (!@cli_set_process_title($this->processTitle)) { |
222 if ('Darwin' === PHP_OS) { | 222 if ('Darwin' === PHP_OS) { |
223 $output->writeln('<comment>Running "cli_get_process_title" as an unprivileged user is not supported on MacOS.</comment>'); | 223 $output->writeln('<comment>Running "cli_get_process_title" as an unprivileged user is not supported on MacOS.</comment>'); |
224 } else { | 224 } else { |
225 $error = error_get_last(); | 225 cli_set_process_title($this->processTitle); |
226 trigger_error($error['message'], E_USER_WARNING); | |
227 } | 226 } |
228 } | 227 } |
229 } elseif (function_exists('setproctitle')) { | 228 } elseif (function_exists('setproctitle')) { |
230 setproctitle($this->processTitle); | 229 setproctitle($this->processTitle); |
231 } elseif (OutputInterface::VERBOSITY_VERY_VERBOSE === $output->getVerbosity()) { | 230 } elseif (OutputInterface::VERBOSITY_VERY_VERBOSE === $output->getVerbosity()) { |