Subject: pkg/15315: first olwm cmdtool gets dud tty
To: None <gnats-bugs@gnats.netbsd.org>
From: None <cagney@mac.com>
List: netbsd-bugs
Date: 01/20/2002 08:56:13
>Number:         15315
>Category:       pkg
>Synopsis:       first olwm cmdtool gets dud tty
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 20 08:56:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Cagney
>Release:        1.5.2 userland, ZA kernel
>Organization:
>Environment:
ac131313@nettle$ uname -a
NetBSD localhost 1.5ZA NetBSD 1.5ZA (NETLUX) #5: Sat Jan 19 13:28:10 EST 2002     boor@localhost:/usr/src/sys/arch/macppc/compile/NETLUX macppc

>Description:

The very first cmdtool started gets a dud terminal.  In particular it
doesn't look to be in the correct mode:

ac131313@nettle$ tty
tty
/dev/ttyp0
ac131313@nettle$ stty -a
stty -a
ispeed 0 baud; ospeed 1100884937 baud; 35 rows; 80 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
        -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
        -extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
        brkint -inpck -ignpar -parmrk
oflags: opost onlcr -ocrnl oxtabs onocr onlret
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -mdmbuf
        -cdtrcts
cchars: discard = ^D; dsusp = ^Y; eof = ^D; eol = <undef>;
        eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
        min = 0; quit = ^\; reprint = ^R; start = ^Q; status = ^@;
        stop = ^S; susp = ^Z; time = 0; werase = ^W;
ac131313@nettle$ 

Any other cmdtool does get the correct settings (including ones that
reuse ttyp0):

ac131313@nettle$ tty
/dev/ttyp1
ac131313@nettle$ stty -a
ispeed 1 baud; ospeed 1100884938 baud; 35 rows; 80 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
        -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
        -extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
        brkint -inpck -ignpar -parmrk
oflags: opost onlcr -ocrnl oxtabs onocr onlret
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -mdmbuf
        -cdtrcts
cchars: discard = ^D; dsusp = ^Y; eof = ^D; eol = <undef>;
        eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
        min = 0; quit = ^\; reprint = ^R; start = ^Q; status = ^@;
        stop = ^S; susp = ^Z; time = 0; werase = ^W;
ac131313@nettle$ 

BTW, I've stared at the stty-a output but can't see any difference.


>How-To-Repeat:
Reboot machine.

Start X

Start a cmdtool

(yes, the reboot is needed)


>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: