Subject: Re: [ub] Draft 1 of Stackable, Thread Local, Signal Guards
From: JF Bastien (cxx_at_[hidden])
Date: 2019-06-02 15:43:20
This is probably the best starting point, even if not that great:
On Sun, Jun 2, 2019 at 1:00 PM Niall Douglas <s_sourceforge_at_[hidden]>
> >> If not, and particularly if a majority on SG12 agrees me with that
> >> signal() is almost useless and almost no newly written production code
> >> written in the past 20 years has used it, would SG12 prefer to see a
> >> proposed wholesale replacement for signal(), which we send to
> > Sounds plausible. Do we have any code search results about the use of
> Sigh. I knew somebody was going to ask that.
> It's a great question, but since Google Code Search shut down, I am
> unaware of any free of cost search engine which can case sensitively
> match "[^a-z0-9_:]signal\(", and which has a non-toy corpus.
> As an illustration of how impossible current search tooling is:
> Probably accurate enough 554K results
> Confounded by Qt 621k results
> I can't get the regex search on http://opensearch.krugle.org to work.
> https://searchcode.com/ no longer appears to match punctuation nor case.
> Chromium code search works well:
> shows that the only use of standard signal() is for a unit test on
> non-POSIX platforms. sigaction() is used throughout:
> But that's one, modern, codebase. Hardly representative.
> If anybody reading can help with giving a better answer to Ville's
> question, it would be very useful.
> ub mailing list
SG12 list run by herb.sutter at gmail.com