From owner-freebsd-current Sun Dec 17 22:47:26 2000 From owner-freebsd-current@FreeBSD.ORG Sun Dec 17 22:47:23 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from dt051n37.san.rr.com (dt051n37.san.rr.com [204.210.32.55]) by hub.freebsd.org (Postfix) with ESMTP id 1ABD937B400; Sun, 17 Dec 2000 22:47:23 -0800 (PST) Received: from gorean.org (Studded@master [10.0.0.2]) by dt051n37.san.rr.com (8.9.3/8.9.3) with ESMTP id WAA27290; Sun, 17 Dec 2000 22:45:39 -0800 (PST) (envelope-from DougB@gorean.org) Sender: doug@dt051n37.san.rr.com Message-ID: <3A3DB292.B297D5C2@gorean.org> Date: Sun, 17 Dec 2000 22:45:38 -0800 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Poul-Henning Kamp Cc: John Baldwin , current@FreeBSD.ORG Subject: Re: test/review: /dev/console logging patch References: <25628.977121324@critter> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Poul-Henning Kamp wrote: > > >>> > >>> This patch is for the printf(9), log(9) & /dev/console stuff. > >>> The result is that you can watch the output from /etc/rc in > >>> your /var/log/messages. > >> > >> Dec 17 13:00:26 Master /boot/kernel/kernel: Doing > >> additional network setup: > >> Dec 17 13:00:26 Master /boot/kernel/kernel: ntpdate > >> Dec 17 13:00:26 Master /boot/kernel/kernel: ntpd > >> Dec 17 13:00:27 Master /boot/kernel/kernel: portmap > >> Dec 17 13:00:27 Master /boot/kernel/kernel: . > > > >The '.'s are simple and not too cluttery. Fixing the console to line buffer > >what it sends to log(9) is a better fix, IMO. > > I specifically decided not to do this because I want to be able to > see stuff like: > > echo -n "Press return to avoid disaster: " > /dev/console > read < /dev/console > > Of course one could add timeouts and what's not, but then imagine > the case of two programs writing on /dev/console at the same time... *nod* I wasn't sure that the buffering was the best suggestion, which is why I preferred making the messages from /etc/rc* more meaningful. :) Doug -- "The most difficult thing in the world is to know how to do a thing and to watch someone else do it wrong without comment." -- Theodore H. White Do YOU Yahoo!? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message