On Sun, Apr 24, 2005 at 07:24:51PM -0400, Dale Walsh said: > > If freshdb overwrite the virus databases when clamd was in the middle > of reloading them, clamd might end up having loaded corrupted > databases. Does everyone agree that such a window exists ?
The freshclam part is atomic - it downloads to a tempfile, and then renames to a real name. There does exist the possibility of clamd noticing that one db is updated while freshclam is still downloading the second, and reloading only the first one. Since freshclam will issue the RELOAD command after downloading the second one, I am not sure what the harm is (except for possibly a few wasted cycles redoing the reload spin cycle). clamd should not, AIUI, attempt a reload unless it either receives the RELOAD command, or it notices the databases have changed. ergo, it should not reload before an update, only after. If I'm missing something, please enlghten me. -- -------------------------------------------------------------------------- | Stephen Gran | Never put off until tomorrow what you | | [EMAIL PROTECTED] | can do today. There might be a law | | http://www.lobefin.net/~steve | against it by that time. | --------------------------------------------------------------------------
pgpIaLqXHi4R8.pgp
Description: PGP signature
_______________________________________________ http://lurker.clamav.net/list/clamav-users.html
