Subject: Re: bin/28341: ps(1) does not understand ptyfs
To: None <fun@naobsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-bugs
Date: 11/17/2004 10:13:05
On Nov 17, 2:15pm, fun@naobsd.org (fun@naobsd.org) wrote:
-- Subject: bin/28341: ps(1) does not understand ptyfs
| >Number: 28341
| >Category: bin
| >Synopsis: ps(1) does not understand ptyfs
| >Confidential: no
| >Severity: serious
| >Priority: medium
| >Responsible: bin-bug-people
| >State: open
| >Class: sw-bug
| >Submitter-Id: net
| >Arrival-Date: Wed Nov 17 14:15:00 +0000 2004
| >Originator: FUKAUMI Naoki
| >Release: NetBSD 2.99.10
| >Organization:
| FUKAUMI Naoki
| >Environment:
| System: NetBSD tr1.naobsd.org 2.99.10 NetBSD 2.99.10 (TR1) #0: Wed Nov 17 16:46:34 JST 2004 root@tr1.naobsd.org:/usr/src/sys/arch/i386/compile/TR1 i386
| Architecture: i386
| Machine: i386
| Kernel & userland is built from today's source.
| >Description:
| ps(1) does not understand ptyfs style tty name.
|
| $ w
| 10:21PM up 4 mins, 2 users, load averages: 0.41, 0.15, 0.06
| USER TTY FROM LOGIN@ IDLE WHAT
| fun pts/0 - 10:21PM 0 w
| fun ttyE0 - 10:21PM 0 xinit
| $ ps
| PID TTY STAT TIME COMMAND
| 98 ttyp0 Ss 0:00.01 ksh
| 100 ttyp0 S 0:00.01 twm
| 102 ttyp0 R+ 0:00.00 ps
| 81 ttyE0 S+ 0:00.00 xinit
| 97 ttyE0 S 0:00.03 xterm -geometry +1+1 -n login
| 1207 ttyE0 Ss 0:00.05 -ksh
PS undestands ptyfs, but it looks the name in devdb which contains both
the old ptys and the new ptys. Since the lookup is done by major/minor
number, both will match (they are aliases of each other; they refer to
the same device). If you remove /dev/pty?? and /dev/tty?? [the
pty's only] it will show pts/X.
christos