|
alarm() for freshclam?: msg#00029security.virus.clamav.devel
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- | | steve@xxxxxxxxxxx | lovers, as they will set an house on | | http://www.lobefin.net/~steve | fire, and it were but to roast their | | | eggs. -- Francis Bacon | --------------------------------------------------------------------------
http://lurker.clamav.net/list/clamav-devel.html |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: ClamAV infinite loop: 00029, Nigel Horne |
|---|---|
| Next by Date: | Re: ClamAV infinite loop: 00029, Brian Bebeau |
| Previous by Thread: | discussion: Oversized.{Zip,RAR} and BLOCKMAXi: 00029, Stephen Gran |
| Next by Thread: | date virus signatures added to database: 00029, robert |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |