From 2c5128382b95540e6d3aca367cbbe9b87daa9c4d Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 25 Jun 2023 22:16:05 +0300 Subject: [PATCH] fix semaphore ID --- cli/yggo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/yggo.php b/cli/yggo.php index 0e304ce..5c59709 100644 --- a/cli/yggo.php +++ b/cli/yggo.php @@ -7,7 +7,7 @@ if (php_sapi_name() != 'cli') { } // Lock multi-thread execution -$semaphore = sem_get(crc32('crontab.cleaner'), 1); +$semaphore = sem_get(crc32('cli.yggo'), 1); if (false === sem_acquire($semaphore, true)) {