Browse Source

fix semaphore ID

main
ghost 2 years ago
parent
commit
2c5128382b
  1. 2
      cli/yggo.php

2
cli/yggo.php

@ -7,7 +7,7 @@ if (php_sapi_name() != 'cli') {
} }
// Lock multi-thread execution // Lock multi-thread execution
$semaphore = sem_get(crc32('crontab.cleaner'), 1); $semaphore = sem_get(crc32('cli.yggo'), 1);
if (false === sem_acquire($semaphore, true)) { if (false === sem_acquire($semaphore, true)) {

Loading…
Cancel
Save