Fixed a bug in clearing the queue accumulated during USR1 processing

This commit is contained in:
Takeshi Nakatani 2024-10-25 00:40:49 +00:00 committed by Andrew Gaul
parent 3ff93d7342
commit b8e56a40b2

View File

@ -113,9 +113,7 @@ void S3fsSignals::CheckCacheWorker(Semaphore* pSem)
} }
// do not allow request queuing // do not allow request queuing
for(int value = pSem->get_value(); 0 < value; value = pSem->get_value()){ while(pSem->try_wait());
pSem->wait();
}
} }
} }