lkml.org 
[lkml]   [2005]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: Linux-2.6.11 can't disable CAD
    From
    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

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-04-07 22:25    [W:0.054 / U:0.672 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site