Subject: standards/20492: window(1) needs to do proper pty(4) accounting
To: None <>
From: Stephen Jones <>
List: netbsd-bugs
Date: 02/25/2003 18:05:37
>Number:         20492
>Category:       standards
>Synopsis:       window(1) does not do proper pty(4) allocation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    standards-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 25 10:06:00 PST 2003
>Originator:     Stephen Jones
>Release:        NetBSD 1.6.1
SDF Public Access UNIX System
System: NetBSD otaku 1.6.1_RC1 NetBSD 1.6.1_RC1 (sdf) #0: Mon Feb 17 17:47:34 CST 2003 alpha


The window(1) command allocates pseudo terminals for a user session without
properly accounting for them. 


run window


window should create entries in utmp and wtmp, as those are the standard
locations for pty usage accounting.  When the user releases a pty, the
entry from utmp should be cleared and the entry in wtmp updated.