Hello all,

Recently I got a bug report for freshclam saying that a couple of times
a month, the submitter finds freshclam stuck on a read from fd 4 (the
network socket).  So, freshclam gets stuck in the middle of a download
and never returns.  Looking things over, it looks to me like the
simplest fix might be an alarm() inside downloadmanager (I think) with a
handler that unlinks tempname, frees tempname, current (and maybe
remote?) and closes hostfd.

I guess it could also be set up to fork() before download, but the way
that the post download hooks have been set up, it seems like fork()ing
would be more difficult to manage.

Let me know what you think - if you agree, I'll try to put something
together.

Thanks,
-- 
 --------------------------------------------------------------------------
|  Stephen Gran                  | It is the nature of extreme self-       |
|  [EMAIL PROTECTED]             | lovers, as they will set an house on    |
|  http://www.lobefin.net/~steve | fire, and it were but to roast their    |
|                                | eggs.   -- Francis Bacon                |
 --------------------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

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

Reply via email to