fix semaphore ID

This commit is contained in:
ghost 2023-06-25 22:16:05 +03:00
parent a79943dbae
commit 2c5128382b

View File

@ -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)) {