From 8773947ea8d250b6e4325d9d4b72f54675b9239a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marin=20Crnkovi=C4=87?= Date: Sun, 18 Jun 2017 01:22:13 +0200 Subject: [PATCH] create process with command line instead of ProcessBuilder --- Command/RunCommand.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Command/RunCommand.php b/Command/RunCommand.php index a40e021b..6fa046f9 100644 --- a/Command/RunCommand.php +++ b/Command/RunCommand.php @@ -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)); @@ -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);