From owner-freebsd-current@FreeBSD.ORG Mon Jun 18 12:50:50 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 E022716A468 for ; Mon, 18 Jun 2007 12:50:50 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.188]) by mx1.freebsd.org (Postfix) with ESMTP id 6C22113C480 for ; Mon, 18 Jun 2007 12:50:50 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by mu-out-0910.google.com with SMTP id w9so1749496mue for ; Mon, 18 Jun 2007 05:50:49 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=QTf6U4SAATlm1ZqZ+hCeLjW/jXeZUDdhRRmTK5EBGWEotO5EKGY2WGV/VV8vbqNUr8KGZkpZ7JDQtZl76cHKYcwT1r0Cx9KPLr5K4OB3tWqRz7d0Uo+QlMbnrW2fl8Fccwod4PuyhQ2gjEm+jmomWBxJvAxoqBYNB4YkNFWA/sA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=AezAKYXWNhKOsvbyDx/+DrRuDeMIefT+yUmMUfCIdwIVEfGxw6cGTn2QIIzdpX1qYLdibOs62h1fPKu4ATt7BceiywnjHe0DKVRdDCP/9aoBnxFzZvj81BB/JKbNXZg7nn17I/9RZTw0t3CJFDKSIPzvayFf4g/mXqk2md9cNp8= Received: by 10.82.100.1 with SMTP id x1mr11200779bub.1182171048732; Mon, 18 Jun 2007 05:50:48 -0700 (PDT) Received: from ?IPv6:::ffff:127.0.0.1? ( [217.206.187.79]) by mx.google.com with ESMTP id h7sm190797nfh.2007.06.18.05.50.47 (version=SSLv3 cipher=RC4-MD5); Mon, 18 Jun 2007 05:50:48 -0700 (PDT) From: Tom Evans To: Kris Kennaway In-Reply-To: <20070617213948.GA50404@rot13.obsecurity.org> References: <20070617213948.GA50404@rot13.obsecurity.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-eSQR+eTZXtdcAWXFnoXp" Date: Mon, 18 Jun 2007 13:50:46 +0100 Message-Id: <1182171046.1253.10.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 FreeBSD GNOME Team Port Cc: current@FreeBSD.org 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 12:50:51 -0000 --=-eSQR+eTZXtdcAWXFnoXp Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 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 =C2=A3$%^ it up too much) so I can contribute back to FreeBSD.=20 So far, I'm looking at usr.bin/killall, bin/ps and usr.bin/write Tom --=-eSQR+eTZXtdcAWXFnoXp Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGdn+mlcRvFfyds/cRAuLqAJ48zWbq/ptxov2fPyzZVXTRSDms0gCgmB9J PCYj0ShIsxJa7iKUPz8scPo= =0HmC -----END PGP SIGNATURE----- --=-eSQR+eTZXtdcAWXFnoXp--