Trog schrieb:
On Wed, 2005-02-16 at 12:53 -0500, Stephen Gran wrote:

On Wed, Feb 09, 2005 at 09:04:52PM -0500, Stephen Gran said:

Hello all,

It seems that freshclam can be hung if it receives a HUP shortly after
receiving an alrm (that is, when waking up to check for a new version).

OK, so some further research shows it to be a problem because the logg*() code is threaded (ifdef CL_THREAD_SAFE, of course), but freshclam does not itself use threads.



The logg() code isn't threaded per se, but does use a mutex. The correct
solution to this is to remove the logg() call in the signal handler.

-trog

This may be one problem. I solved the other problem with freshclam's signal handler on monday night, where signals didn't get blocked inside the signal handler itself (see the discussion on <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=274646>).
Unfortunately my inet connection at home is broken atm, so I can't check it in nor send a diff. Sorry.



Thomas _______________________________________________ http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel

Reply via email to