Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263298AbTKWGV2 (ORCPT ); Sun, 23 Nov 2003 01:21:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263299AbTKWGV2 (ORCPT ); Sun, 23 Nov 2003 01:21:28 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:56077 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id S263298AbTKWGV0 (ORCPT ); Sun, 23 Nov 2003 01:21:26 -0500 To: linux-kernel@vger.kernel.org From: "H. Peter Anvin" Subject: Re: x86: SIGTRAP handling differences from 2.4 to 2.6 Date: 22 Nov 2003 22:21:17 -0800 Organization: Transmeta Corporation, Santa Clara CA Message-ID: References: <16319.57610.204577.206796@cargo.ozlabs.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Disclaimer: Not speaking for Transmeta in any way, shape, or form. Copyright: Copyright 2003 H. Peter Anvin - All Rights Reserved Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1390 Lines: 33 Followup to: By author: Linus Torvalds In newsgroup: linux.dev.kernel > > Hmm.. Looking at the signal sending code, we actually do special-case > "init" there already - but only for the "kill -1" case. If the test for > "pid > 1" was moved into "group_send_sig_info()" instead, that would > pretty much do it, I think. > Okay... I'm going to ask the obvious dumb question: Why do we bother special-casing init at all? It seems the only things init can't ask the kernel to do already for it is to block SIGSTOP and SIGKILL, and it seems that if you killed (or stopped?) init you should just get the kernel panic. If there is anything that should be special-cased, then perhaps it should be that init should be allowed to block/catch/ignore SIGSTOP/SIGKILL. Perhaps that should be a capability? -hpa -- at work, in private! If you send me mail in HTML format I will assume it's spam. "Unix gives you enough rope to shoot yourself in the foot." Architectures needed: ia64 m68k mips64 ppc ppc64 s390 s390x sh v850 x86-64 - 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/