Skip to content

Commit e1525a8

Browse files
committed
Fixes two issues; the type error surfaced by use of strict_types in 2.3-develop and issue where SCD hangs ending in RuntimeException on 2.2-develop
Resolves #22563 and #21852
1 parent 7631cbc commit e1525a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/code/Magento/Deploy/Process/Queue.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,11 @@ private function isDeployed(Package $package)
335335
{
336336
if ($this->isCanBeParalleled()) {
337337
if ($package->getState() === null) {
338+
$pid = $this->getPid($package);
339+
if ($pid === null) {
340+
return false;
341+
}
342+
338343
// phpcs:ignore Magento2.Functions.DiscouragedFunction
339344
$result = pcntl_waitpid($pid, $status, WNOHANG);
340345
if ($result === $pid) {

0 commit comments

Comments
 (0)