Subject: misc/5115: xdm doesn't run correctly when called from /etc/rc
To: None <gnats-bugs@gnats.netbsd.org>
From: None <haszlaki@uaccess.net>
List: netbsd-bugs
Date: 03/04/1998 06:10:13
>Number:         5115
>Category:       misc
>Synopsis:       xdm doesn't run correctly when called from /etc/rc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar  4 07:05:06 1998
>Last-Modified:
>Originator:     Eric Haszlakiewicz
>Organization:
>Release:        NetBSD-030398
>Environment:
System: NetBSD realms.isdn.uiuc.edu 1.3E NetBSD 1.3E (REALMS.UVM) #0: Wed Mar 4 05:19:20 CST 1998 root@:/REALMS.UVM i386


>Description:
	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.
>How-To-Repeat:
>Fix:
Workaround:
change:
	echo -n ' xdm';		xdm $xdm_flags
to:
	echo -n ' xdm';		( sleep 10 ; xdm $xdm_flags) &

Better fix:
	get stuff to run after init spawns stuff from /etc/ttys.
	How?  (hmm... add a line in /etc/ttys that calls
		a rc.afterconfig script, which does whatever,
		call xdm, and then just sleeps forever) blah

>Audit-Trail:
>Unformatted: