Subject: kern/19461: xconsole grabs console login
To: None <gnats-bugs@gnats.netbsd.org>
From: None <franklin@elfie.org>
List: netbsd-bugs
Date: 12/19/2002 14:37:08
>Number:         19461
>Category:       kern
>Synopsis:       xconsole grabs console login
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 19 11:38:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     John Franklin
>Release:        NetBSD 1.6K
>Organization:
John Franklin
franklin@elfie.org
ICBM: 35°43'56"N 78°53'27"W
>Environment:
	
	
System: NetBSD deathmitten 1.6K NetBSD 1.6K (DM.MP) #0: Sun Dec 8 05:35:41 EST 2002 franklin@deathmitten:/usr/src2/sys/arch/i386/compile/DM.MP i386
Architecture: i386
Machine: i386
>Description:
	
When running xconsole in an X11 session, it's impossible to log in on the console.  This is because the getty tries to write output to xconsole and read input from the same.  It creates the following output in the xconsole window:

NetBSD/i386 (deathmitten) (console)

login: 
NetBSD/i386 (deathmitten) (console)

login: Dec 19 14:26:02 deathmitten init: getty repeating too quickly on port /dev/console, sleeping
Dec 19 14:26:36 deathmitten init: getty repeating too quickly on port /dev/console, sleeping
Dec 19 14:28:52 deathmitten last message repeated 4 times

>How-To-Repeat:
	
run xconsole in X11
<ctl-alt-F1>
Try to login
check the output in xconsole
>Fix:
	
Make ctl-alt-F1 ttyE0 and have /dev/console redirect by default to ttyE0. When xconsole (or similar program) is run, /dev/console redirects to it instead.  Remove /dev/console from /etc/ttys, replacing it with /dev/ttyE0.
>Release-Note:
>Audit-Trail:
>Unformatted: