| From | Sent On | Attachments |
|---|---|---|
| Richard Scheper | Jul 22, 1999 5:31 am | |
| Kazutaka YOKOTA | Jul 22, 1999 5:45 am | |
| Richard Scheper | Jul 22, 1999 6:04 am | |
| Richard Scheper | Jul 22, 1999 7:17 am | |
| Thomas Dean | Jul 22, 1999 9:34 am | |
| Richard Scheper | Jul 22, 1999 10:09 am | |
| Nate Williams | Jul 22, 1999 10:24 am | |
| Terry Lambert | Jul 22, 1999 11:00 am | |
| Richard Scheper | Jul 22, 1999 11:05 am | |
| Nate Williams | Jul 22, 1999 11:11 am | |
| Nate Williams | Jul 22, 1999 11:16 am | |
| Richard Scheper | Jul 22, 1999 11:16 am | |
| Terry Lambert | Jul 22, 1999 11:16 am | |
| Terry Lambert | Jul 22, 1999 11:38 am | |
| Mike Smith | Jul 22, 1999 11:42 am | |
| Nate Williams | Jul 22, 1999 11:45 am | |
| Terry Lambert | Jul 22, 1999 11:45 am | |
| Terry Lambert | Jul 22, 1999 11:50 am | |
| Terry Lambert | Jul 22, 1999 11:52 am | |
| Mike Smith | Jul 22, 1999 11:53 am | |
| Nate Williams | Jul 22, 1999 11:55 am | |
| Richard Scheper | Jul 22, 1999 12:15 pm | |
| Garance A Drosihn | Jul 22, 1999 1:57 pm | |
| Garance A Drosihn | Jul 22, 1999 2:00 pm | |
| Richard A. Scheper | Jul 22, 1999 6:33 pm | |
| Terry Lambert | Jul 22, 1999 6:34 pm | |
| Terry Lambert | Jul 22, 1999 6:36 pm | |
| Matthew Dillon | Jul 22, 1999 6:45 pm | |
| Thomas Dean | Jul 22, 1999 6:47 pm | |
| Kazutaka YOKOTA | Jul 22, 1999 8:10 pm | |
| Kazutaka YOKOTA | Jul 22, 1999 8:45 pm | |
| Kazutaka YOKOTA | Jul 22, 1999 9:01 pm | |
| Chris D. Faulhaber | Jul 22, 1999 9:17 pm | |
| Matthew Dillon | Jul 22, 1999 9:31 pm | |
| Kazutaka YOKOTA | Jul 22, 1999 9:45 pm | |
| Thomas Dean | Jul 22, 1999 9:51 pm | |
| Kazutaka YOKOTA | Jul 22, 1999 10:06 pm | |
| Kazutaka YOKOTA | Jul 22, 1999 10:19 pm | |
| Kazutaka YOKOTA | Jul 22, 1999 10:29 pm | |
| Thomas Dean | Jul 22, 1999 11:03 pm | |
| Marc van Kempen | Jul 23, 1999 12:42 am | |
| Nate Williams | Jul 23, 1999 9:19 am | |
| Nate Williams | Jul 23, 1999 9:23 am | |
| Nate Williams | Jul 23, 1999 9:27 am | |
| Terry Lambert | Jul 23, 1999 4:21 pm | |
| Matthew Dillon | Jul 23, 1999 4:43 pm | |
| Bruce Evans | Jul 23, 1999 4:59 pm | |
| Terry Lambert | Jul 23, 1999 5:14 pm | |
| Bruce Evans | Jul 23, 1999 5:41 pm | |
| Kazutaka YOKOTA | Jul 24, 1999 1:17 am | |
| Kazutaka YOKOTA | Jul 24, 1999 1:21 am | |
| Terry Lambert | Jul 26, 1999 1:39 pm | |
| Kazutaka YOKOTA | Aug 6, 1999 11:29 pm | |
| Nate Williams | Aug 8, 1999 11:08 am |
| Subject: | Re: SMP + XDM = keyboard lockup | |
|---|---|---|
| From: | Matthew Dillon (dil...@apollo.backplane.com) | |
| Date: | Jul 22, 1999 9:31:47 pm | |
| List: | org.freebsd.freebsd-smp | |
:> execution. :> :> If xdm happens to run before other getty processes, it may grab a vty :> which will be eventually opened by a getty later. :> : :vty's are assigned in /etc/ttys, though: : :ttyv4 "/usr/X11R6/bin/xdm -nodaemon" xterm off secure :^^^^^ :so it the starting order shouldn't matter, unless you have a getty and xdm :assigned the same vty, and then it _should_ lock up whether using SMP or :not. : :----- :Chris D. Faulhaber <jed...@fxp.org> | All the true gurus I've met never
That's what I thought too... and it's correct for getty's. But xdm ignores the argument init passes to it.
So here is what happens:
init opens the vty and runs xdm.
xdm runs X which ignores the vty and locates a new one by scanning the vty's sequentially looking for one that is unused.
In this case a race is possible. X will not, in fact, run in vty 0 like we expected.
I tested this. My /etc/ttys runs xdm from ttyv0, but the X sessions winds up on ttyv4.
However X does search vty's sequentially, so all you need to do is make sure the first two slots in /etc/ttys for ttyv0 and ttyv1 are turned off.
So this is my recommendation now: Run xdm on ttyv0, leave ttyv1 turned off. Run your getty's starting with ttyv2.
# ttyv0 "/usr/X11R6/bin/xdm -nodaemon cons25 on secure ttyv1 "/usr/libexec/getty Pc" cons25 off secure ttyv2 "/usr/libexec/getty Pc" cons25 on secure ttyv3 "/usr/libexec/getty Pc" cons25 on secure
Or, if you want to run xdm from your rc.local, leave both ttyv0 AND ttyv1 turned off. Why? Because ttyv0 will be allocated while the rc files are being run so you still have to leave at least ttyv1 turned off in init to avoid a race.
If you do this I believe there is no possibility of a race.
It would be nice if we could specify the vty that X is to allocate as an option to X. I couldn't find anything in the man pages right offhand to accomplish this, though.
-Matt Matthew Dillon <dil...@backplane.com>
To Unsubscribe: send mail to majo...@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message





