Skip to content

Commit

Permalink
Fixed a bug in clearing the queue accumulated during USR1 processing
Browse files Browse the repository at this point in the history
  • Loading branch information
ggtakec committed Oct 25, 2024
1 parent 3ff93d7 commit f9f40d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sighandlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ void S3fsSignals::CheckCacheWorker(Semaphore* pSem)

// do not allow request queuing
for(int value = pSem->get_value(); 0 < value; value = pSem->get_value()){
pSem->wait();
if(!pSem->try_wait()){
break;
}
}
}
}
Expand Down

0 comments on commit f9f40d2

Please sign in to comment.