Balazs Nagy wrote:
>
> On Wed, 12 May 1999, Lars Uffmann wrote:
>
> > Balazs Nagy wrote:
> > >
> > > This tcpserver opens stderr to print its log messages and opens a pipe to
> > > stdin-stdout for qmail-popup's connection. In fact there isn't a way to do
> > > logging right now.
> >
> > Try commenting out line 91 in qmail-popup.c:
> >
> > 91 /* if (fd_copy(2,1) == -1) die_pipe(); */
>
> 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.
-- lars