From owner-freebsd-current@FreeBSD.ORG Thu May 14 21:12:17 2009 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B90301065673 for ; Thu, 14 May 2009 21:12:17 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id 5C81C8FC23 for ; Thu, 14 May 2009 21:12:17 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 186271D15D; Thu, 14 May 2009 23:12:16 +0200 (CEST) Date: Thu, 14 May 2009 23:12:15 +0200 From: Ed Schouten To: current@FreeBSD.org Message-ID: <20090514211215.GN58540@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d6yp3DxVbLZXge6e" Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Cc: Subject: CFT: consolectl X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 May 2009 21:12:18 -0000 --d6yp3DxVbLZXge6e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello folks, I just made the following patch for -CURRENT. I did some tests to see whether it works, but I'd rather send to to hackers@ to see whether it introduces any regressions: http://80386.nl/pub/syscons.diff What this patch does: right now /dev/consolectl is a TTY that isn't really useful right now. When you write data to it, it just appears on the first window and when you read data from it, it will block indefinitely. The only reason it exists, is because we want to have this administrative syscons device that can be used by applications to call various ioctls. This is also the device node that is used by moused to deliver mouse events. So this patch turns /dev/consolectl into a regular device node that can only process the ioctl events. The advantage is that we don't allocate a TTY (including buffers) just to process some ioctl events. After you've applied this patch, `pstat -t' should no longer list consolectl. I'd love to have some reports of people running X11 to know whether their mouse still works. Unfortunately I don't have a FreeBSD -CURRENT system running X11 at the moment. Just let me know if it breaks stuff. Thanks! --=20 Ed Schouten WWW: http://80386.nl/ --d6yp3DxVbLZXge6e Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEUEARECAAYFAkoMiS8ACgkQ52SDGA2eCwVc+gCY4qkY4uShE0C/v768uB/rtpLG NACbBi8iKocVHMSFN4Ac7gQPDphixTs= =K3gU -----END PGP SIGNATURE----- --d6yp3DxVbLZXge6e--