From: "H. Peter Anvin" <hpa@zytor.com>
To: linux-kernel@vger.kernel.org
Subject: Re: x86: SIGTRAP handling differences from 2.4 to 2.6
Date: 22 Nov 2003 22:21:17 -0800 [thread overview]
Message-ID: <bppjkt$ik0$1@cesium.transmeta.com> (raw)
In-Reply-To: Pine.LNX.4.44.0311221435090.2379-100000@home.osdl.org
Followup to: <Pine.LNX.4.44.0311221435090.2379-100000@home.osdl.org>
By author: Linus Torvalds <torvalds@osdl.org>
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
--
<hpa@transmeta.com> at work, <hpa@zytor.com> 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
next prev parent reply other threads:[~2003-11-23 6:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-22 18:29 x86: SIGTRAP handling differences from 2.4 to 2.6 Daniel Barlow
2003-11-22 19:02 ` Linus Torvalds
2003-11-22 22:19 ` Paul Mackerras
2003-11-22 22:40 ` Linus Torvalds
2003-11-23 6:21 ` H. Peter Anvin [this message]
2003-11-23 17:59 ` Linus Torvalds
2003-11-24 23:57 ` jw schultz
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='bppjkt$ik0$1@cesium.transmeta.com' \
--to=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.