Subject: Re: misc/5115: xdm doesn't run correctly when called from /etc/rc
To: None <netbsd-bugs@NetBSD.ORG>
From: Wolfgang Rupprecht <email@example.com>
Date: 03/04/1998 11:10:21
> Boot NetBSD with a recent /etc/rc, xdm enabled, and a couple things
> in /etc/rc.local (optional). Since xdm manages to get running
> before init spawns any gettys it doesn't always pick an empty one.
> This leads to tons of fun when xdm and getty stomp on each other.
There is a second related problem I've just noticed with xdm sitting
on the wrong pty every once in a while.
When I run sshd from /etc/rc, xdm which is started a bit later can't
bind to /dev/ttyv0 and instead grabs /dev/ttyv1 with the obvious
results. X and the getty fight for keboard events and eventually X
loses control of the keyboard. When I turned off ssh, then X gets
ttyv0 and all is happy.
The workarounds are:
1) run ssh from inetd
2) turn off getty on ttyv1
I use both. Belts and supenders.
(BTW. Running ssh from inetd with the default key sizes is no big
problem for modern cpu's. Even a 6 spec-int ppro-150 does that in a
second or two. Its also more secure and has one less daemon sitting
around twiddling its thumbs most of the time.)