Re: [exim] perl writes STDERR output to the client!

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: 2005reply
CC: Exim Users
Betreff: Re: [exim] perl writes STDERR output to the client!
On Sun, 16 Jan 2005, Martin Nicholas wrote:

> Output from perl's "warn" statement is written to the client interface by
> default. Library routines (Mail::SRS for example) are unaware of this and the
> client disconnects having been fed garbage.
>
> Ths solution is to use this little bit of perly magic:
>
> $SIG{__WARN__} = sub { Exim::log_write($_[0]) };
>
> Output then goes to the logfile.


I will add this to the next edition of the manual. Thanks for the
information.

> Probably a good idea for this to be the default in future versions.


I will see if I can figure out how this can be done.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book