From owner-freebsd-current@FreeBSD.ORG Sun Jun 17 21:39: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 3F2F716A468 for ; Sun, 17 Jun 2007 21:39:50 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 2B75913C44C for ; Sun, 17 Jun 2007 21:39:50 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 16AFD1A3C1A for ; Sun, 17 Jun 2007 14:39:08 -0700 (PDT) Received: from rot13.obsecurity.org (rot13.obsecurity.org [192.168.1.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 4C882513E1 for ; Sun, 17 Jun 2007 17:39:49 -0400 (EDT) Received: by rot13.obsecurity.org (Postfix, from userid 1001) id C07EEBE89; Sun, 17 Jun 2007 17:39:48 -0400 (EDT) Date: Sun, 17 Jun 2007 17:39:48 -0400 From: Kris Kennaway To: current@FreeBSD.org Message-ID: <20070617213948.GA50404@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5vNYLRcllDrimb99" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: 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: Sun, 17 Jun 2007 21:39:50 -0000 --5vNYLRcllDrimb99 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: pointyhat# write simon write: /dev/398: No such file or directory simon was logged in on /dev/pts/398. killall -t also fails to parse the new device format: 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 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. There are probably other utilities also affected. Kris --5vNYLRcllDrimb99 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGdaokWry0BWjoQKURAmCJAKCna+JFUPKFcfPBwdeprJjDDQs74gCdEGlz Z3lh+Bx1MsjQ9eYjINFCbuw= =2Z7R -----END PGP SIGNATURE----- --5vNYLRcllDrimb99--