From: Ulrich Drepper <drepper@gmail.com>
To: Roland McGrath <roland@redhat.com>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: Fw: sigwait() breaks when straced
Date: Mon, 1 Aug 2005 00:09:53 -0700 [thread overview]
Message-ID: <a36005b50508010009453fdfb7@mail.gmail.com> (raw)
In-Reply-To: <20050801000120.1D00F180EC0@magilla.sf.frob.com>
On 7/31/05, Roland McGrath <roland@redhat.com> wrote:
> However, there is in fact no bug here. The test program is just wrong.
> sigwait returns zero or an error number, as POSIX specifies.
No question, no error is detected incorrectly.
But sigwait is not a function specified with an EINTR error number.
As I said before, this does not mean that EINTR cannot be returned.
But it will create havoc among programs and it causes undefined
behavior wrt to SA_RESTART. I think it is best to not have any
function for which EINTR is not a defined error to fail this way.
This causes the least amount of surprises and unnecessary loops around
the userlevel call sites.
next prev parent reply other threads:[~2005-08-01 7:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20050730170049.6df9e39f.akpm@osdl.org>
2005-08-01 0:01 ` Fw: sigwait() breaks when straced Roland McGrath
2005-08-01 0:12 ` Dave Airlie
2005-08-01 16:25 ` Jesper Juhl
2005-08-01 19:20 ` Ulrich Drepper
2005-08-01 7:09 ` Ulrich Drepper [this message]
2005-08-01 7:57 ` Roland McGrath
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=a36005b50508010009453fdfb7@mail.gmail.com \
--to=drepper@gmail.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@redhat.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 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.