Subject: xsrc/9399: kill -1 1 detaches X server from vt
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kpn@neutralgood.org>
List: netbsd-bugs
Date: 02/11/2000 21:09:38
>Number:         9399
>Category:       xsrc
>Synopsis:       kill -1 1 detaches X server from vt
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    xsrc-manager (NetBSD X11 bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 11 21:09:00 2000
>Last-Modified:
>Originator:     Kevin P. Neal
>Organization:
-- 
Kevin P. Neal                                http://www.pobox.com/~kpn/

"You know, I think I can hear the machine screaming from here...  \
'help me! hellpp meeee!'"  - Heather Flanagan, 14:52:23 Wed Jun 10 1998
>Release:        1.4Q (late January)
>Environment:
System: NetBSD mrhyde 1.4Q NetBSD 1.4Q (GENERIC.DEBUG) #1: Tue Feb  1 01:00:55 EST 2000     kpn@mrhyde:/usr/src/sys/arch/i386/compile/GENERIC.DEBUG i386

>Description:

(I guess this is category xsrc... it might be bin or kern...)

If you kill -1 1 to get init to reread /etc/ttys, but you have an X server
running on a virtual console, then the X server loses the ability to connect
to the virtual console via ctrl-alt-fX. 

>How-To-Repeat:

All of this assumes using wscons:

1) Start an X server via xdm's Xservers file. Give as the last argument on the
line for the local server "vt6".

2) Boot machine. Observe X started on virtual console. Realize you actually
wanted it on vt7, and realize you messed up counting from zero and
disabled the wrong tty in /etc/ttys (ttyE6 == F7 == X's vt7).

3) Fix /etc/ttys.

4) kill -1 1

5) Observe how you can't ctrl-alt-f6 or -f7 to your X server, instead getting
the text console (with our without a working login prompt, depending on
your /etc/ttys).

6) Curse (you can do this without wscons but I don't recommend it.)

(killing xdm and restarting it fixes things until the next kill -1 1)

Related bug: X will occasionally have the keyboard get weird if the 
virtual console X is on also has a getty running on it -- it looks like X
and getty fight for control.

>Fix:

Sorry, no quick fixes this time.
>Audit-Trail:
>Unformatted: