On Thursday 12 July 2007 17:59:15 Tiberiu Socaciu wrote:
> ----- Original Message -----
> From: "Dizzy" <[EMAIL PROTECTED]>
>
> > Poate aberez dar din cate imi aduc aminte problema mare cu qmail-scanner
> > e ca
> > e un script perl. Si iti dai seama ce inseamna sa porneasca cate un
> > script perl pt FIECARE mail trimis. Este un cost imens de CPU cel putin.
> > Eu foloseam
> > qscan (http://www.usinglinux.org/mail/qscan.html) care era un program C
> > scris
> > in stilul DJB si era mult mai rapid decat qmail-scanner ca sa interfatez
> > cu
> > diverse chestii externe pt virus/spam.
>
> ce e ala djb-style? :D

Adica sa iei valori random bazandu-te pe PID-ul procesului curent... etc

Sau cum bine a zis-o chiar Linus Torvalds (http://lkml.org/lkml/2004/6/6/9):

<--- cut here --->
qmail is a piece of crap. The source code is completely unreadable, and it 
seems to think that "getpid()" is a good source of random data. Don't ask 
me why.

It literally does things like

        random = now() + (getpid() << 16);

and since there isn't a single comment in the whole source tree, it's
pointless to wonder why. (In case you wonder, "now()" just does a
"time(NULL)" call - whee.).

I don't understand why people bother with it. It's not like Dan Bernstein
is so charming that it makes up for the deficiencies of his programs.
</--- cut here --->


Mihai

_______________________________________________
RLUG mailing list
RLUG@lists.lug.ro
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui