From: "Theodore Ts'o" <tytso@mit.edu>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Paolo Ornati <ornati@fastwebnet.it>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Lack of Documentation about SA_RESTART...
Date: Sun, 24 Jul 2005 10:56:08 -0400 [thread overview]
Message-ID: <20050724145608.GA6132@thunk.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0507231723270.6074@g5.osdl.org>
On Sat, Jul 23, 2005 at 05:30:42PM -0700, Linus Torvalds wrote:
> On Mon, 11 Jul 2005, Theodore Ts'o wrote:
> >
> > According to the Single Unix Specification V3, all functions that
> > return EINTR are supposed to restart if a process receives a signal
> > where signal handler has been installed with the SA_RESTART flag.
>
> That can't be right.
>
> Some operations, like "select()" and "pause()" always return EINTR, and
> indeed, real applications will break if you always restart. Restarting a
> pause() would be nonsensical.
The spect says "unless otherwise specified". The description for
pause() states that the process will sleep until receiving a signal
that terminates the process or causes it to call signal-handling
function. That would presumably count as an "otherwise specified".
- Ted
next prev parent reply other threads:[~2005-07-24 23:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-11 10:32 Lack of Documentation about SA_RESTART Paolo Ornati
2005-07-11 14:34 ` Theodore Ts'o
2005-07-12 3:30 ` Philippe Troin
2005-07-12 8:43 ` Paolo Ornati
2005-07-12 8:38 ` Paolo Ornati
2005-07-12 10:10 ` Paolo Ornati
2005-07-12 12:04 ` Theodore Ts'o
2005-07-12 15:25 ` Paolo Ornati
2005-07-12 18:16 ` Theodore Ts'o
2005-07-13 7:45 ` Paolo Ornati
2005-07-24 0:30 ` Linus Torvalds
2005-07-24 7:28 ` Paolo Ornati
2005-07-24 14:56 ` Theodore Ts'o [this message]
2005-07-25 8:02 ` Paolo Ornati
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=20050724145608.GA6132@thunk.org \
--to=tytso@mit.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=ornati@fastwebnet.it \
--cc=torvalds@osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox