From owner-freebsd-current Sun Dec 17 22:35:28 2000 From owner-freebsd-current@FreeBSD.ORG Sun Dec 17 22:35:27 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from critter.freebsd.dk (flutter.freebsd.dk [212.242.40.147]) by hub.freebsd.org (Postfix) with ESMTP id 2562C37B400; Sun, 17 Dec 2000 22:35:26 -0800 (PST) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.1/8.11.1) with ESMTP id eBI6ZOf25630; Mon, 18 Dec 2000 07:35:24 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: John Baldwin Cc: Doug Barton , current@FreeBSD.ORG Subject: Re: test/review: /dev/console logging patch In-Reply-To: Your message of "Sun, 17 Dec 2000 15:06:40 PST." Date: Mon, 18 Dec 2000 07:35:24 +0100 Message-ID: <25628.977121324@critter> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>> >>> 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... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message