mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Andi Kleen <ak@suse.de>
Cc: LKML <linux-kernel@vger.kernel.org>,
	rmk@arm.linux.org.uk, gerg@uclinux.org, jdike@karaya.com,
	sammy@sammy.net, lethal@linux-sh.org, wli@holomorphy.com,
	davem@davemloft.net, matthew@wil.cx, geert@linux-m68k.org,
	paulus@samba.org, davej@codemonkey.org.uk, tony.luck@intel.com,
	dev-etrax@axis.com, rpurdie@rpsys.net, spyro@f2s.com,
	Robert Wilkens <robw@optonline.net>,
	Bodo Stroesser <bstroesser@fujitsu-siemens.com>,
	Jan Engelhardt <jengelh@linux01.gwdg.de>,
	Chris Wright <chrisw@osdl.org>, Andrew Morton <akpm@osdl.org>,
	Linus Torvalds <torvalds@osdl.org>
Subject: Re: [PATCH] Convert sigaction to act like other unices
Date: Sat, 13 Aug 2005 10:00:14 -0400	[thread overview]
Message-ID: <1123941614.5296.112.camel@localhost.localdomain> (raw)
In-Reply-To: <20050813123956.GN22901@wotan.suse.de>

On Sat, 2005-08-13 at 14:39 +0200, Andi Kleen wrote:
> On Fri, Aug 12, 2005 at 10:40:02PM -0400, Steven Rostedt wroqte:
> > Here's a patch that converts all architectures to behave like other unix
> > boxes signal handling.  It's funny that I didn't need to change the m68k
> > architecture, since it was the only one that already behaves this way!
> > (the m68knommu does not!)
> 
> <rest snipped which also wasn't better>
> 
> This is not a description of what you changed. A patch entry has to 
> start with a rationale and then a description of the change.

Sorry, I forgot that not all were in on the thread.  (duh, I added a
bunch of others, I guess I wasn't thinking clearly).

http://lkml.org/lkml/2005/8/9/190 "Singal handling possibly wrong".

Here's a summary:

Bodo Stroesser noticed a conflict between the man pages and what the
kernel was doing in regard to SA_NODEFER.  The man pages stated that
SA_NODEFER would only not defer the signal that is being processed,
where as the the kernel would not defer all signals (including those in
sa_mask).

The POSIX description of this was very confusing, where Linus thought it
explained what the kernel currently does, and I (and others) thought it
did what the man pages described.  Someone found an updated version that
supports my theory. In fact it seems that even the signal would be
defered if SA_NODEFER was set but the signal was in the sa_mask.

Finally, it was ask, what do other unix boxes do?  I wrote a simple
program that tested the behavior of this and posted it.  I had a couple
of responses that tested the following unices:

AIX, DU4, IRIX6, Solaris and OSF1, and all of these do it the way the
man pages described.  Since Linux happens to be the odd ball out, I
submitted the patch to make Linux act like other unix boxes with regard
to signals and SA_NODEFER.

Hope this explains things better.

-- Steve



  reply	other threads:[~2005-08-13 14:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-13  2:40 Steven Rostedt
2005-08-13 12:39 ` Andi Kleen
2005-08-13 14:00   ` Steven Rostedt [this message]
2005-08-13 21:29     ` Andi Kleen
2005-08-14 12:20       ` Jesper Juhl
2005-08-16 17:04         ` Steven Rostedt
2005-08-16 17:15           ` Linus Torvalds
2005-08-13 14:25   ` Steven Rostedt

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=1123941614.5296.112.camel@localhost.localdomain \
    --to=rostedt@goodmis.org \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=bstroesser@fujitsu-siemens.com \
    --cc=chrisw@osdl.org \
    --cc=davej@codemonkey.org.uk \
    --cc=davem@davemloft.net \
    --cc=dev-etrax@axis.com \
    --cc=geert@linux-m68k.org \
    --cc=gerg@uclinux.org \
    --cc=jdike@karaya.com \
    --cc=jengelh@linux01.gwdg.de \
    --cc=lethal@linux-sh.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthew@wil.cx \
    --cc=paulus@samba.org \
    --cc=rmk@arm.linux.org.uk \
    --cc=robw@optonline.net \
    --cc=rpurdie@rpsys.net \
    --cc=sammy@sammy.net \
    --cc=spyro@f2s.com \
    --cc=tony.luck@intel.com \
    --cc=torvalds@osdl.org \
    --cc=wli@holomorphy.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

Powered by JetHome