mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Joseph C. Sible" <josephcsible@gmail.com>
To: musl@lists.openwall.com
Subject: Re: Compile-time flag to enable optional EINTR's?
Date: Fri, 7 Sep 2018 09:57:21 -0400	[thread overview]
Message-ID: <CABpewhFmgi7=QS2Z07uwjH3eyFzRBZtfLersjsXuC9r_nu8yxw@mail.gmail.com> (raw)
In-Reply-To: <20180907131508.GK1878@brightrain.aerifal.cx>

On Fri, Sep 7, 2018 at 9:15 AM Rich Felker <dalias@libc.org> wrote:
> I seem to recall Python's testsuite having a test asserting that POSIX
> semaphores respond to interrupting signals, so it sounds like the
> underlying problem is that Python is implementing some of its
> primitives with a non-portable assumption. I'll take a look or see if
> someone else from the community wants to.

You're correct. I agree that they're in the wrong here. I opened
https://bugs.python.org/issue34004 about it a while ago. I'm not sure
what the best way is to fix it though. The only way I know of to get
rid of the race condition is pselect/ppoll/etc. (all way heavier than
futex), something nonportable like signalfd or eventfd, or having
another thread to do all the signal handling and wake up all the
futexes (and the associated complexity of making sure they never get
the two wakeup cases mixed up). Do you have an opinion as to the best
solution that could be done on their end?

Joseph C. Sible


      reply	other threads:[~2018-09-07 13:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-07  1:26 Joseph C. Sible
2018-09-07  2:16 ` Rich Felker
2018-09-07  4:09   ` Joseph C. Sible
2018-09-07 13:15     ` Rich Felker
2018-09-07 13:57       ` Joseph C. Sible [this message]

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='CABpewhFmgi7=QS2Z07uwjH3eyFzRBZtfLersjsXuC9r_nu8yxw@mail.gmail.com' \
    --to=josephcsible@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).