Date: Thu, 15 Jun 2000 20:34:58 +0100 From: David Malone <dwmalone@maths.tcd.ie> To: Lowell Gilbert <lowell@world.std.com> Cc: freebsd-bugs@freebsd.org Subject: Re: kern/19273: Halt key for syscons. Message-ID: <20000615203458.A68719@bell.maths.tcd.ie> In-Reply-To: <44pupj0xnd.fsf@lowellg.ne.mediaone.net>; from lowell@world.std.com on Thu, Jun 15, 2000 at 11:30:46AM -0400 References: <200006142050.aa81880@walton.maths.tcd.ie> <44pupj0xnd.fsf@lowellg.ne.mediaone.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 15, 2000 at 11:30:46AM -0400, Lowell Gilbert wrote: > I've handed out a patch to solve this problem in a different way: > instead of setting up a different key for *every* kind of reboot, mine > tries to make it easy to change (at compile time; being able to do it > later would provide too much opportunity for confusion) the signal that > gets generated by ctrl-alt-delete. I did think it was a bit inelegant that I had to more-or-less duplicate of the shutdown_nice code, but there didn't seem to be another option if I was to cover the case where a signal to init wouldn't work. A more general soultion would be nice, maybe with a table of boot options and apropriate signals to send to init? > I'm not sure which approach is better. Mr. Malone's is certainly a lot > more flexible than mine in the sense of not changing what ctrl-alt- > delete already does. However, flexibility may not be an advantage in > this case; you don't want too many magic keyboard combinations bringing > the machine down. I didn't actually add the halt key to the default keymap, so there isn't a halt key by default. > Furthermore, my patch is *more* flexible in the sense > that it lets you attach *any* signal to the ctrl-alt-delete key combo. > This is useful because most of the requests I'd seen were actually for > powerdown, rather than just halt, to replace reboot. It would be nice to have the powerdown option too, hmmm. I could easily produce another option which did this and try to unify the *_nice functions. Afterall, they are only called from syscons and pcvt at the moment. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000615203458.A68719>