From nobody@FreeBSD.ORG Mon Mar 29 04:16:10 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id E600F15828; Mon, 29 Mar 1999 04:16:09 -0800 (PST)
Message-Id: <19990329121609.E600F15828@hub.freebsd.org>
Date: Mon, 29 Mar 1999 04:16:09 -0800 (PST)
From: daniel@cyberjunky.net
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: vty's from ttyvc - ttvf (maybe more?) do now show up in w or who outputs
X-Send-Pr-Version: www-1.0

>Number:         10856
>Category:       bin
>Synopsis:       vty's from ttyvc - ttvf (maybe more?) do now show up in w or who outputs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 29 04:20:02 PST 1999
>Closed-Date:    Fri Jun 15 08:17:05 PDT 2001
>Last-Modified:  Fri Jun 15 08:18:35 PDT 2001
>Originator:     Daniel Harris
>Release:        3.0-19981015-BETA
>Organization:
>Environment:
FreeBSD Chucky.CyberJunky.Net 3.1-STABLE FreeBSD 3.1-STABLE #0: Sun Mar 28 11:01:56 CST 1999     root@CyberJunky.Net:/usr/src/sys/compile/CHUCKY  i386
>Description:
While installing more than 12 console vtys, I noticed the w/who commands
did not show all the vtys logged into.  The vtys involved starts at
ttyvc and goes up to ttyvf where I stopped.

Outputs: (w)
 6:18AM  up 18:04, 2 users, load averages: 0.05, 0.02, 0.00
USER             TTY      FROM              LOGIN@  IDLE WHAT
hogie            p1       207.138.66.6:S.0  1:41AM     - BitchX Hogie-One irc.home.com (BitchX-75p3)
hogie            p2       207.138.66.6      2:02AM     - w

(who)
hogie            ttyp1   Mar 29 01:41   (207.138.66.6:S.0)
hogie            ttyp2   Mar 29 02:02   (207.138.66.6)

(last)
hogie            ttyvc                     Sun Mar 28 14:19   still logged in
hogie            ttyve                     Sun Mar 28 14:10   still logged in
hogie            ttyvf                     Sun Mar 28 14:12   still logged in

>How-To-Repeat:
Add To /etc/ttys:
ttyv4   "/usr/libexec/getty Pc"         cons25  on  secure
ttyv5   "/usr/libexec/getty Pc"         cons25  on  secure
ttyv6   "/usr/libexec/getty Pc"         cons25  on  secure
ttyv7   "/usr/libexec/getty Pc"         cons25  on  secure
ttyv8   "/usr/libexec/getty Pc"         cons25  on  secure
ttyv9   "/usr/libexec/getty Pc"         cons25  on  secure
ttyva   "/usr/libexec/getty Pc"         cons25  on  secure
ttyvb   "/usr/libexec/getty Pc"         cons25  on  secure
ttyvc   "/usr/libexec/getty Pc"         cons25  on  secure
ttyvd   "/usr/libexec/getty Pc"         cons25  on  secure
ttyve   "/usr/libexec/getty Pc"         cons25  on  secure
ttyvf   "/usr/libexec/getty Pc"         cons25  on  secure

goto /dev
./MAKEDEV vtyf
killall -HUP init

Login to extended vty using SHIFT ALT F5
>Fix:


>Release-Note:
>Audit-Trail:

From: "Daniel Harris" <daniel@cyberjunky.net>
To: "Sheldon Hearn" <sheldonh@iafrica.com>
Cc:  
Subject: Re: bin/10856: vty's from ttyvc - ttvf (maybe more?) do now show up in w or who outputs
Date: Wed, 31 Mar 1999 07:28:24 -0600

 Sorry about the delay replying to you.  My windows machine picked the email
 up before I knew it, and It has been having memory problems.  Here is the
 output you wanted:
 
 [Chucky:hogie] /home/hogie > tty ; w
 /dev/ttyvf
  7:32AM  up 20:40, 5 users, load averages: 0.14, 0.07, 0.08
 USER             TTY      FROM              LOGIN@  IDLE WHAT
 root             v1       -                 6:24AM    24 -tcsh (tcsh)
 root             v2       -                 6:37AM     - /bin/sh
 /usr/ports/x11/XFree
 hogie            p0       :ttyv0:S.0       Tue03PM     1 BitchX Hogie
 irc.home.com (B
 hogie            p1       penguin.cyberjun  6:44AM     1 -tcsh (tcsh)
 wolvie           p2       roopee.ozemail.c  7:17AM    14 -tcsh (tcsh)
 [Chucky:hogie] /home/hogie >
 
 Also, I noticed once the machine was up for about 24 hours, the ttys show up
 in everything.... but once I reboot it, the first 24 hours or so, nothing
 from ttyva on shows up.
 
 As for how I use that virtual console, Since it is added to my /etc/ttys and
 I did killall -HUP init, I can use ALT-SHIFT-F? to get to them instead of
 the usual ALT-F? key combos.
 
 -----Original Message-----
 From: Sheldon Hearn <sheldonh@iafrica.com>
 To: Daniel Harris <daniel@cyberjunky.net>
 Date: Monday, March 29, 1999 3:13 PM
 Subject: Re: bin/10856: vty's from ttyvc - ttvf (maybe more?) do now show up
 in w or who outputs
 
 
 >
 >Hi Daniel,
 >
 >I'm confused. How did you log into ttyvc ? Could you demonstrate the
 >error by doing:
 >
 >$ tty; w
 >
 >Ciao,
 >Sheldon.
 >
 >
 
 
 

From: Sheldon Hearn <sheldonh@iafrica.com>
To: "Daniel Harris" <daniel@cyberjunky.net>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/10856: vty's from ttyvc - ttvf (maybe more?) do now show up in w or who outputs 
Date: Thu, 01 Apr 1999 15:46:22 +0200

 On Wed, 31 Mar 1999 07:28:24 CST, "Daniel Harris" wrote:
 
 > Also, I noticed once the machine was up for about 24 hours, the ttys show up
 > in everything.... but once I reboot it, the first 24 hours or so, nothing
 > from ttyva on shows up.
 
 That's pretty weird, because I just installed a test kernel, rebooted a
 few minutes ago and got:
 
 $ tty ; w
 /dev/ttyve
  3:44PM  up 2 mins, 2 users, load averages: 0.10, 0.06, 0.02
 USER             TTY      FROM              LOGIN@  IDLE WHAT
 root             v0       -                 3:43PM     1 -sh (sh)
 sheldonh         ve       -                 3:43PM     - w
 
 Does this happen if you clobber /var/log/utmp and /var/log/wtmp and then
 reboot?
 
 Ciao,
 Sheldon.
 
State-Changed-From-To: open->closed 
State-Changed-By: schweikh 
State-Changed-When: Fri Jun 15 08:17:05 PDT 2001 
State-Changed-Why:  
This works in -current: 
$ tty;w 
/dev/ttyvf 
5:16PM  up  3:05, 8 users, load averages: 0.20, 0.14, 0.15 
USER             TTY      FROM              LOGIN@  IDLE WHAT 
schweikh         v0       -                 2:11PM  2:40 -zsh (zsh) 
schweikh         vb       -                 5:12PM     3 -zsh (zsh) 
schweikh         p0       :0                2:12PM    17 mutt 
schweikh         p1       :0                2:12PM    14 vim open-prs 
schweikh         vf       -                 5:14PM     - w 
schweikh         p3       :0                2:12PM  1:04 zsh -l 
schweikh         p4       :0.0              3:36PM     4 zsh -l 
schweikh         p5       :0.0              3:45PM     1 vim /tmp/ep7117 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=10856 
>Unformatted:
