From: Albert Cahalan <albert@users.sf.net>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Albert Cahalan <albert@users.sourceforge.net>,
developer_linux@yahoo.com,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Question about Linux signal handling
Date: 23 Feb 2003 18:04:50 -0500 [thread overview]
Message-ID: <1046041491.31809.46.camel@cube> (raw)
In-Reply-To: <1046043810.2092.0.camel@irongate.swansea.linux.org.uk>
On Sun, 2003-02-23 at 18:43, Alan Cox wrote:
> On Sun, 2003-02-23 at 22:29, Albert Cahalan wrote:
>> Yes. This is the behavior of all SysV UNIX systems
>> and Linux kernels. Unfortunately, BSD got it wrong.
>
> Firstly BSD didn't get it wrong, things merely diverged
> historically after V7 unix.
BSD is wrong for not choosing a different name
for the new system call and leaving the old one.
There could have been a signal2() with the new
behavior. X/Open even did this, with bsd_signal()
as the name. Breaking compatibility is bad.
>> Worse, the glibc developers saw fit to ignore both
>> UNIX history and Linus. They implemented BSD behavior
>> by making signal() use the sigaction system call
>
> Also wrong. If you read the gcc documentation you can
> select favouring BSD or SYS5 behaviour at compile time
>
> glibc has the best of both worlds
Non-default behavior is nearly irrelevant. The default
should have matched traditional UNIX and Linux behavior.
The best of both worlds certainly means traditional
signal() and a bsd_signal(), with a non-default option
to choose the BSD signal() behavior.
next prev parent reply other threads:[~2003-02-23 22:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-23 22:29 Question about Linux signal handling Albert Cahalan
2003-02-23 23:43 ` Alan Cox
2003-02-23 23:04 ` Albert Cahalan [this message]
2003-02-24 0:20 ` Alan Cox
2003-02-24 0:01 ` Magnus Danielson
-- strict thread matches above, loose matches on Subject: below --
2003-02-23 4:45 Tom Sanders
2003-02-23 16:30 ` Jesse Pollard
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=1046041491.31809.46.camel@cube \
--to=albert@users.sf.net \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=albert@users.sourceforge.net \
--cc=developer_linux@yahoo.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.