mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-02-03 10:25:52 +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)) {
|
||||
|
||||
echo 'Process locked by another thread.' . PHP_EOL;
|
||||
exit;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user