@@ -347,6 +347,7 @@ private function isDeployed(Package $package)
347
347
$ result = pcntl_waitpid ($ pid , $ status , WNOHANG );
348
348
if ($ result === $ pid ) {
349
349
$ package ->setState (Package::STATE_COMPLETED );
350
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
350
351
$ exitStatus = pcntl_wexitstatus ($ status );
351
352
352
353
$ this ->logger ->info (
@@ -361,7 +362,9 @@ private function isDeployed(Package $package)
361
362
// phpcs:ignore Magento2.Functions.DiscouragedFunction
362
363
return pcntl_wexitstatus ($ status ) === 0 ;
363
364
} elseif ($ result === -1 ) {
365
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
364
366
$ errno = pcntl_errno ();
367
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
365
368
$ strerror = pcntl_strerror ($ errno );
366
369
367
370
throw new \RuntimeException (
@@ -401,6 +404,7 @@ private function checkTimeout()
401
404
* Protect against zombie process
402
405
*
403
406
* @throws \RuntimeException
407
+ * @SuppressWarnings(PHPMD.UnusedLocalVariable)
404
408
* @return void
405
409
*/
406
410
public function __destruct ()
@@ -417,7 +421,9 @@ public function __destruct()
417
421
418
422
// phpcs:ignore Magento2.Functions.DiscouragedFunction
419
423
if (pcntl_waitpid ($ pid , $ status ) === -1 ) {
424
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
420
425
$ errno = pcntl_errno ();
426
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
421
427
$ strerror = pcntl_strerror ($ errno );
422
428
423
429
throw new \RuntimeException (
0 commit comments