[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: odd -- /var/log/messages and tail in tty3 not working



Erik Andersen <andersen@xmission.com> writes:

> On Sat Jan 22, 2000 at 02:47:52PM +0900, Taketoshi Sano wrote:
> > 
> > I add "closelog()" after calling "syslog()" in init.c, then logger 
> > works again. Try this:
> > 
> > --- init.c.orig Fri Jan 21 14:21:06 2000
> > +++ init.c      Sat Jan 22 14:45:36 2000
> > @@ -148,6 +148,7 @@
> >         vsnprintf(msg, sizeof(msg), fmt, arguments);
> >         va_end(arguments);
> >         syslog(LOG_DAEMON|LOG_NOTICE, msg);
> > +       closelog();
> >      }
> 
> Excellent!  Thank-you!  I have applied this fix to CVS,

Can this be right?  A closelog needs an openlog, and is purely
optional as well, at least according to closelog(3).

-- 
.....Adam Di Carlo....adam@onShore.com.....<URL:http://www.onShore.com/>


Reply to: