mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-08 22:07:56 +00:00
add process locked notice to the debug output
This commit is contained in:
parent
0f2b772fa8
commit
2a843449e0
@ -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…
Reference in New Issue
Block a user