From owner-freebsd-current@FreeBSD.ORG Mon Jun 18 15:01:51 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E2F7A16A46B for ; Mon, 18 Jun 2007 15:01:51 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay01.kiev.sovam.com (relay01.kiev.sovam.com [62.64.120.200]) by mx1.freebsd.org (Postfix) with ESMTP id 7500613C45E for ; Mon, 18 Jun 2007 15:01:51 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [89.162.146.170] (helo=skuns.kiev.zoral.com.ua) by relay01.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1I0HKu-000IrM-Jc for current@freebsd.org; Mon, 18 Jun 2007 16:32:13 +0300 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by skuns.kiev.zoral.com.ua (8.14.1/8.14.1) with ESMTP id l5IDVkZu058501 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 18 Jun 2007 16:31:46 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1) with ESMTP id l5IDVkib092753; Mon, 18 Jun 2007 16:31:46 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1/Submit) id l5IDVjk8092752; Mon, 18 Jun 2007 16:31:45 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 18 Jun 2007 16:31:44 +0300 From: Kostik Belousov To: Tom Evans Message-ID: <20070618133144.GQ2268@deviant.kiev.zoral.com.ua> References: <20070617213948.GA50404@rot13.obsecurity.org> <1182171046.1253.10.camel@localhost> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mGYhZGuFUHu/yRn+" Content-Disposition: inline In-Reply-To: <1182171046.1253.10.camel@localhost> User-Agent: Mutt/1.4.2.2i X-Virus-Scanned: ClamAV version 0.90.2, clamav-milter version 0.90.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on skuns.kiev.zoral.com.ua X-Scanner-Signature: 0c824a349f07dfe35efcbc7aeaa72b30 X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 1151 [June 18 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Method: none X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: current@freebsd.org, Kris Kennaway Subject: Re: Userland problems from kern.pts.enable=1 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: Mon, 18 Jun 2007 15:01:52 -0000 --mGYhZGuFUHu/yRn+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 18, 2007 at 01:50:46PM +0100, Tom Evans wrote: > On Sun, 2007-06-17 at 17:39 -0400, Kris Kennaway wrote: > > When the kern.pts.enable sysctl is set to '1', pseudo-ttys are created > > with device name /dev/pts/${NUMBER}. With some kernel fixes from kib > > this appears to now be stable and the kernel side is ready for a > > possible change of default. However, the new device naming confuses > > some userland utilities. For example: > >=20 > > pointyhat# write simon > > write: /dev/398: No such file or directory > >=20 > > simon was logged in on /dev/pts/398. > >=20 > > killall -t also fails to parse the new device format: > >=20 > > bento# ps -t pts/187 > > PID TT STAT TIME COMMAND > > 67734 187 Ss 0:00.04 /bin/csh > > 72599 187 R+ 0:00.00 ps -t pts/187 > > bento# killall -t pts/187 > > killall: stat(/dev/ttypts/187): No such file or directory > >=20 > > It would also be useful if ps -t recognized a numeric argument as > > magic and converted it to add the pts/. It already appears to do the > > converse when displaying the TTY, as you can see above. > >=20 > > There are probably other utilities also affected. > >=20 > > Kris > >=20 >=20 > If no-one has already started working on these, I've had a look at a few > of these utils and the changes look quite straightforward. I've been > looking for something like this (simple enough for me to do, simple > enough that a I can't ??$%^ it up too much) so I can contribute back to > FreeBSD.=20 >=20 > So far, I'm looking at usr.bin/killall, bin/ps and usr.bin/write >=20 Mentioned patches are at http://people.freebsd.org/~kib/misc/destroy_dev_sched.10.patch --mGYhZGuFUHu/yRn+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGdolAC3+MBN1Mb4gRAqRUAJ9wkBBtdYBrBDc6ek2uRBPooRjq7ACghu9D XkxdfeuFCzQmm3+jVLpPxuQ= =rhmy -----END PGP SIGNATURE----- --mGYhZGuFUHu/yRn+--