Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 6 Dec 2018 18:03:59 +0100
From: Markus Wichmann <nullplan@....net>
To: musl@...ts.openwall.com
Subject: Re: sem_wait and EINTR

On Thu, Dec 06, 2018 at 11:23:36AM -0500, Rich Felker wrote:
> One ugly hack that might be worth doing is simply tracking whether any
> signal handler has been installed without SA_RESTART, and keeping the
> retry-on-EINTR logic if not.

Oh, that's what you meant. So the effort suddenly went from "high" to
"trivial". This is just a flag that is 0 on process start and becomes 1
on the installation of a signal handler. And nothing else.

Honestly, as hacks go, I've seen way worse. The ugly thing is the bug
we're working around. Might be worth a comment, though.

Ciao,
Markus

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.