Re: Early use of log() does not end up in kernel msg buffer

From: Eric van Gyzen <vangyzen_at_FreeBSD.org>
Date: Fri, 27 Mar 2015 09:05:24 -0400
On 03/26/2015 23:20, Eric Badger wrote:
> Using log(9) when no process is reading the log results in the message
> going only to the console (contrast with printf(9), which goes to the
> console and to the kernel message buffer in this case). I believe it is
> truer to the semantics of logging for messages to *always* go to the
> message buffer (where they can eventually be collected and in fact put
> into a logfile). I therefore propose the attached patch, which sends
> log(9) to the message buffer always, and to the console only if no one
> has yet opened the log.

This makes sense to me.  Since I'm new here, I'll wait for others to
comment.

Eric
Received on Fri Mar 27 2015 - 12:06:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:56 UTC