Subject: Re: syslogd message lossage
To: None <xs@kittenz.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-users
Date: 06/01/2002 17:04:22
On Fri, May 31, 2002 at 08:49:07PM +0100, xs@kittenz.org wrote:
> Hi,
> I have a machine running NetBSD 1.5.3_RC1.
> 
> Just now, I went to log into it remotely and use su to check on something.
> After su authenticated, it (su) hung. So I went to the console of the
> machine and found that scroll lock had been left on.  Upon switching off
> scroll lock, many messages predictably filled the screen.
> 
> The last entry in /var/log/authlog before I switched scroll lock off was
> dated 3 days ago. Yet I had successfully logged in a few minutes ago via
> ssh. Logins and various activities (it has a web server of sorts) didn't
> appear in any log files, even after scroll lock was switched off.
> 
> Would I be correct in concluding that the scroll back buffer had become
> full, and so writing to /dev/console blocked, causing syslogd to block
> and miss information?  If so, should syslogd use O_NONBLOCK to open files?

Yes, this is what blocked syslog. I don't know why is missed some infos
though, maybe some processes are using O_NONBLOCK writing to the syslog
socket.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--