Browse Source

add process locked notice to the debug output

main
ghost 2 years ago
parent
commit
2a843449e0
  1. 1
      crontab/crawler.php

1
crontab/crawler.php

@ -5,6 +5,7 @@ $semaphore = sem_get(crc32('crontab.crawler'), 1);
if (false === sem_acquire($semaphore, true)) { if (false === sem_acquire($semaphore, true)) {
echo 'Process locked by another thread.' . PHP_EOL;
exit; exit;
} }

Loading…
Cancel
Save