Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262569AbVDGS7x (ORCPT ); Thu, 7 Apr 2005 14:59:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262558AbVDGS7a (ORCPT ); Thu, 7 Apr 2005 14:59:30 -0400 Received: from fire.osdl.org ([65.172.181.4]:12690 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S262553AbVDGS7M (ORCPT ); Thu, 7 Apr 2005 14:59:12 -0400 Date: Thu, 7 Apr 2005 11:59:04 -0700 From: "Randy.Dunlap" To: linux-os@analogic.com Cc: linux-kernel@vger.kernel.org Subject: Re: Linux-2.6.11 can't disable CAD Message-Id: <20050407115904.1d1ee28f.rddunlap@osdl.org> In-Reply-To: References: Organization: OSDL X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i686-pc-linux-gnu) X-Face: SvC&!/v_Hr`MvpQ*|}uez16KH[#EmO2Tn~(r-y+&Jb}?Zhn}c:Eee&zq`cMb_[5`tT(22ms (.P84,bq_GBdk@Kgplnrbj;Y`9IF`Q4;Iys|#3\?*[:ixU(UR.7qJT665DxUP%K}kC0j5,UI+"y-Sw mn?l6JGvyI^f~2sSJ8vd7s[/CDY]apD`a;s1Wf)K[,.|-yOLmBl0 | _exit(0) = ? | # exit | Script done on Thu 07 Apr 2005 10:58:21 AM EDT What program is that? I'm just echoing 0 | 1 into /proc/sys/kernel/ctrl-alt-del , is that equivalent? or have you tried that? | 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). echo 0 > /proc/sys/kernel/ctrl-alt-del is same as CAD_OFF echo 1 is same as CAD_ON I tested 2.4.28, 2.6.3, 2.6.9, 2.6.11, and all of them behaved the same way for me. If it's an issue with using a syscall to change the setting, I'll be glad to look into that too. observed behaviors: CAD enabled + C_A_D keys => call machine_reboot() to reboot quickly, no normal shutdown sequence; CAD disabled + C_A_D keys => kill init, go thru normal clean shutdown sequence; are these the expected behaviors? | A side note, while researching this problem, I think I found | that LINUX_REBOOT_MAGIC2 is Linus' birthday (in hex). Maybe | the problem is that he no longer observes his birthday? --- ~Randy - 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/