From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 31 19:06:15 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C7C81065692; Fri, 31 Oct 2008 19:06:15 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (unknown [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id DF4CE8FC13; Fri, 31 Oct 2008 19:06:14 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 09DBF1CCB2; Fri, 31 Oct 2008 20:06:14 +0100 (CET) Date: Fri, 31 Oct 2008 20:06:14 +0100 From: Ed Schouten To: Thierry Herbelot Message-ID: <20081031190614.GQ1165@hoeg.nl> References: <200810311746.23743.thierry.herbelot@free.fr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zsAhXfiBV62A5hVr" Content-Disposition: inline In-Reply-To: <200810311746.23743.thierry.herbelot@free.fr> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: hackers@freebsd.org, current ML Subject: Re: strange behaviour with /sbin/init and serial console X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2008 19:06:15 -0000 --zsAhXfiBV62A5hVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Theirry, * Thierry Herbelot wrote: > with the following patch on /sbin/init, I have two different behaviours= =20 > depending on the console type (on a i386/32 PC) : > - on a video console, I see the expected two messages, > - on a serial console, the messages are not displayed (init silently fini= shes=20 > its job and gets to start /etc/rc and everything) >=20 > I assume that the writev system call is implemented in=20 > src/sys/kern/tty_cons.c::cnwrite(), but I could not parse the code to fin= d an=20 > explanation. >=20 > any taker ? >=20 > TfH >=20 > PS : this is initially for a RELENG_6 machine, but the code is quite simi= lar=20 > under RELENG_7 or Current Any data written to /dev/console is not multiplexed to all console devices, but only the first active device in the list. The reason behind this, is because it adds a real lot of complexity to the console code, especially related to polling and reading on /dev/console. This weekend I'm going to commit a replacement implementation of /dev/console, which also has this restriction. --=20 Ed Schouten WWW: http://80386.nl/ --zsAhXfiBV62A5hVr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkkLVyUACgkQ52SDGA2eCwXJRQCfYlP8lwi/+EZ/nUcM/2blOMzk AxgAn2b3VAVoExfOqCogJOtJxJ/SoWic =d94R -----END PGP SIGNATURE----- --zsAhXfiBV62A5hVr--