Skip to content

Commit

Permalink
Merge pull request #176 from anorgan/master
Browse files Browse the repository at this point in the history
Create Process with command line instead of ProcessBuilder
  • Loading branch information
schmittjoh authored Jun 28, 2017
2 parents 423970e + 8773947 commit 4d07790
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Command/RunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ private function startJob(Job $job)
foreach ($job->getArgs() as $arg) {
$pb->add($arg);
}
$proc = $pb->getProcess();

$proc = new Process($pb->getProcess()->getCommandLine());
$proc->start();
$this->output->writeln(sprintf('Started %s.', $job));

Expand Down Expand Up @@ -410,7 +411,7 @@ private function cleanUpStaleJobs($workerName)
;

// We use a separate process to clean up.
$proc = $pb->getProcess();
$proc = new Process($pb->getProcess()->getCommandLine());
if (0 !== $proc->run()) {
$ex = new ProcessFailedException($proc);

Expand Down

0 comments on commit 4d07790

Please sign in to comment.