From owner-freebsd-hackers Sun Apr 27 18:03:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA09609 for hackers-outgoing; Sun, 27 Apr 1997 18:03:49 -0700 (PDT) Received: from labs.usn.blaze.net.au (labs.usn.blaze.net.au [203.17.53.30]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA09598 for ; Sun, 27 Apr 1997 18:03:42 -0700 (PDT) Received: from labs.usn.blaze.net.au (local [127.0.0.1]) by labs.usn.blaze.net.au (8.8.5/8.8.5) with ESMTP id LAA03881; Mon, 28 Apr 1997 11:03:37 +1000 (EST) Message-Id: <199704280103.LAA03881@labs.usn.blaze.net.au> X-Mailer: exmh version 2.0gamma 1/27/96 To: Peter Korsten cc: hackers@freebsd.org Subject: Re: xdm in /usr/X11R6/etc/rc.d problem In-reply-to: Your message of "Sun, 27 Apr 1997 20:34:20 +0200." <19970427203420.55698@hw.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 28 Apr 1997 11:03:37 +1000 From: David Nugent Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I installed 2.2.1 and decided to put the stuff from /etc/rc.local > in /usr/local/etc/rc.d and /usr/X11R6/etc/rc.d, respectively. ~ > The result is that I have a screen with the xdm login, but that > the keyboard thinks it's listening to a vty. I managed to login as > root and print xdm's pid to console (xconsole) and kill it, but > still no characters would appear. This is somewhat of a coincidence. I only found this out last night after updating /etc with the latest rc.conf commits (which work fine, btw, apart from a missing keybell= definition). > I'm almost positive that this is a known issue, but is there a way > to get around it? xdm startup just needs to be delayed until /etc/rc completes. My gut feeling is that there's definitely a race condition here that should be solved "correctly", and that as machines/disks become faster we're more likely to see this in the future, especially if xdm is started before other things from /etc/rc.local or from /usr/X11R6/etc/rc.d. The workaround I ended up using is: if [ X"$1" = X"start" ]; then echo -n ' xdm' (sleep 15; exec limits -C xuser /usr/X11R6/bin/xdm) & fi (remove "limits -C xuser" if you're not using -current. David Nugent - Unique Computing Pty Ltd - Melbourne, Australia Voice +61-3-9791-9547 Data/BBS +61-3-9792-3507 3:632/348@fidonet davidn@freebsd.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/