mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Julien Ramseier <j.ramseier@gmail.com>
To: musl@lists.openwall.com
Subject: Re: [PATCH] sigtimedwait: allow failing with EINTR
Date: Sat, 24 Feb 2018 11:45:16 +0100	[thread overview]
Message-ID: <9DFC885B-7454-4F81-A2BF-AED124FF80AD@gmail.com> (raw)
In-Reply-To: <20180223214531.GJ1436@brightrain.aerifal.cx>



> Le 23 févr. 2018 à 22:45, Rich Felker <dalias@libc.org> a écrit :
> 
> On Fri, Feb 23, 2018 at 01:09:35PM +0100, Julien Ramseier wrote:
>> According to POSIX, sigtimedwait(2) is allowed to fail
>> with EINTR, while sigwait(3) is not, so move the retry loop there.
>> ---
> 
> This is a "may fail", not a "shall fail". Generally we prefer not to
> support EINTR in cases where it's optional, since getting rid of them
> with retry loops makes it safe to run on old kernels or
> pseudo-linux-compat systems where SA_RESTART semantics were/are not
> actually conforming. Is there a reason you want it to fail with EINTR?
> 
> Rich

Some apps seem to rely on this, notably Python where a test case expects
sigtimedwait to be interrupted when a SIGALRM is fired.

I cannot find another case in musl where EINTR is inhibited
(while being allowed by POSIX), are there any?

- Julien

  reply	other threads:[~2018-02-24 10:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-23 12:09 Julien Ramseier
2018-02-23 21:45 ` Rich Felker
2018-02-24 10:45   ` Julien Ramseier [this message]
2018-02-24 14:39     ` Rich Felker

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=9DFC885B-7454-4F81-A2BF-AED124FF80AD@gmail.com \
    --to=j.ramseier@gmail.com \
    --cc=musl@lists.openwall.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).