On Wed, 2005-04-06 at 10:19 +0200, Thomas Lamy wrote:
> Joanna Roman wrote:
> > Hi What would happen if the clamd is notified by
> > freshdb to reload the db when the clamd is in the
> > middle of scanning something. I have not read that
> > part of the code yet. But if you know the answer on
> > top of your head, pls inform me.
> > 
> > 
> AFAIR the thread manager (main thread) wait for all workers to finish 
> (and suspends worker creation) on reload event, going back to normal 
> operation after the reload has finished.

Thats correct for the current release.

The CVS code currently uses ref counting to overcome this limitation, so
when a reload is requested, a new signature tree is generated, and the
old one is free'd when all current scanning has finished.

-trog

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html

Reply via email to