Skip to content

Commit 4d07790

Browse files
authored
Merge pull request #176 from anorgan/master
Create Process with command line instead of ProcessBuilder
2 parents 423970e + 8773947 commit 4d07790

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Command/RunCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,8 @@ private function startJob(Job $job)
363363
foreach ($job->getArgs() as $arg) {
364364
$pb->add($arg);
365365
}
366-
$proc = $pb->getProcess();
366+
367+
$proc = new Process($pb->getProcess()->getCommandLine());
367368
$proc->start();
368369
$this->output->writeln(sprintf('Started %s.', $job));
369370

@@ -410,7 +411,7 @@ private function cleanUpStaleJobs($workerName)
410411
;
411412

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

0 commit comments

Comments
 (0)