[Clam-devel] SMSBatch bug: too much opened files.

Pau Arumi parumi at iua.upf.edu
Thu Mar 29 10:19:24 PDT 2007


the patch have been already commited. thanks!
feel free to implement the already opened exception, SPDIFFile
is not used outside SMSTools so changes are quite safe.

pau


En/na Giulio Paci ha escrit:
> Hi,
>     sometime ago we have found a bug in SMSBatch.
> The problem was that when runningSMSBatch in a directory with
> about 1300 xml files and performing analysis it crashed reporting
> "Too much opened files".
> 
> We have found that the problem arises when storing SDIF files. Here is a
> patch
> that fixes the problem and maybe others.
> 
> I don't like too much this patch, 'cause it hides bad programming, but
> it helps
> in avoiding two open on the same file. Maybe File should launch an exception
> when trying to open a file without closing a previouvs opened file?
> 
> Anyway, here is the patch. :)
> 
> Giulio.




More information about the clam-devel mailing list