From cb41ad1d4ba9b4702a109bd014c1d51cf5ad18ed Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 5 Jan 2022 16:49:36 +0100 Subject: [PATCH] Ensure process timeouts are checked also for async processes --- src/Composer/Util/ProcessExecutor.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Composer/Util/ProcessExecutor.php b/src/Composer/Util/ProcessExecutor.php index 00a1e2d73..16352bbcf 100644 --- a/src/Composer/Util/ProcessExecutor.php +++ b/src/Composer/Util/ProcessExecutor.php @@ -321,6 +321,8 @@ class ProcessExecutor if (!$job['process']->isRunning()) { call_user_func($job['resolve'], $job['process']); } + + $job['process']->checkTimeout(); } if ($this->runningJobs < $this->maxJobs) {