From: Jan Harkes <jaharkes@cs.cmu.edu>
To: "Richard B. Johnson" <linux-os@analogic.com>
Cc: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: Linux-2.6.11 can't disable CAD
Date: Thu, 7 Apr 2005 16:20:59 -0400 [thread overview]
Message-ID: <20050407202059.GA414@delft.aura.cs.cmu.edu> (raw)
In-Reply-To: <Pine.LNX.4.61.0504071102590.4871@chaos.analogic.com>
On Thu, Apr 07, 2005 at 11:16:14AM -0400, Richard B. Johnson wrote:
> In the not-too distant past, one could disable Ctl-Alt-DEL.
> Can't do it anymore.
...
> Observe that reboot() returns 0 and `strace` understands what
> parameters were passed. The result is that, if I hit Ctl-Alt-Del,
> `init` will still execute the shutdown-order (INIT 0).
Actually, if CAD is enabled in the kernel, it will just reboot.
If CAD is disabled in the kernel a SIGINT is sent to pid 1 (/sbin/init).
So what you probably had in the not-too-distant past was a disabled CAD
in the kernel _and_ you had modified the following line in /etc/inittab,
# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
AFAIK this hasn't ever really changed.
Jan
next prev parent reply other threads:[~2005-04-07 20:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-07 15:16 Richard B. Johnson
2005-04-07 18:59 ` Randy.Dunlap
2005-04-07 19:46 ` Richard B. Johnson
2005-04-07 20:08 ` Randy.Dunlap
2005-04-07 20:35 ` Richard B. Johnson
2005-04-07 20:20 ` Jan Harkes [this message]
2005-04-07 20:50 ` Richard B. Johnson
2005-04-08 13:05 ` Daniel Jacobowitz
2005-04-08 13:54 ` Richard B. Johnson
[not found] ` <20050407210144.GA8181@delft.aura.cs.cmu.edu>
[not found] ` <Pine.LNX.4.61.0504080822150.8739@chaos.analogic.com>
2005-04-08 20:54 ` Richard B. Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050407202059.GA414@delft.aura.cs.cmu.edu \
--to=jaharkes@cs.cmu.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-os@analogic.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®