add process locked notice to the debug output

This commit is contained in:
ghost 2023-04-07 04:58:56 +03:00
parent 0f2b772fa8
commit 2a843449e0

View File

@ -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;
} }