Leonardo Helman wrote: [...]
A question about your patch (didn't look the code): In: shutdown(2); while(<STDIN>) {....are you shure STDIN will have data waiting?
No - STDIN may be empty - the while loop ensures that we only read from it, if true (data waiting).
Isn't blocking there?
The shutdown(2) shuts down the socket for R/W, so STDIN can only have a finite "amount" of data waiting. It's important to "clear" STDIN, since the child is going to be reused. I agree that the solution isn't pretty, but to many (broken) MTA's just sends data without checking the replies qpstmpd sends and that's saved in STDIN unless it's cleared. Best regards, Diego d'Ambra
smime.p7s
Description: S/MIME Cryptographic Signature
