From 9601b9f35a13213db6a30d57c18acc084cfe24c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20R=C3=BCsweg?= Date: Tue, 7 Feb 2023 08:16:02 +0100 Subject: [PATCH] Fix missing variable use in anonymous function --- src/Console/PurgeCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/PurgeCommand.php b/src/Console/PurgeCommand.php index dd791a4b..d97ee144 100644 --- a/src/Console/PurgeCommand.php +++ b/src/Console/PurgeCommand.php @@ -96,7 +96,7 @@ public function purge($master, $signal = SIGTERM) $master, $this->supervisors->longestActiveTimeout() ); - collect($expired)->each(function ($processId) use ($master) { + collect($expired)->each(function ($processId) use ($master, $signal) { $this->comment("Killing Process: {$processId}"); exec("kill -s {$signal} {$processId}");