signal handling

Danny via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 9 15:30:45 PST 2015


Hmmm...

Just found 
<https://www.securecoding.cert.org/confluence/display/seccode/void+SIG33-C.+Do+not+recursively+invoke+the+raise%28%29+function>, 
the bottom part "Compliant Solution (POSIX)" does raise() in the 
signal handler.

However, I can't find it in the POSIX standard at 
<http://pubs.opengroup.org/onlinepubs/009695399/functions/sigaction.html>.

But 
<https://www.securecoding.cert.org/confluence/display/seccode/SIG30-C.+Call+only+asynchronous-safe+functions+within+signal+handlers> 
lists the async-safe functions. raise() and sigaction() are in 
it. But _Exit() is, too.


More information about the Digitalmars-d-learn mailing list