On Wed, 12 May 1999, Lars Uffmann wrote:
> Balazs Nagy wrote:
>
> > Why DJB put this line in? If you run this program from command line,
> > 0,1,2 are open. If you run from inetd, it dups 2 and 1 fom 0 (eg. 2 is
> > alive). Tcpserver does a good emulation of command line. I don't know
> > why this line exists in the code.
>
> To be compatible with inetd qmail-popup HAS to dup STDERR 2 STDIN. If you
> will patch checkpassword/pop3d to log to STDERR, you will no longer be
> able to run them from inetd, because the log messages would be redirected
> to the mail client. The same with qmail-smtpd. I guess this is one reason
> qmail-smtpd does no logging at all.
But you should use tcp-env to run qmail-popup and you should open a pipe to
a logger (esp. the stderr fd) which can be specified in command line. Other
solution: use errorsto(daemontools).
--
Regards: Kevin (Balazs)