What is wrong with core.stdc.signal ?

ketmar ketmar at ketmar.no-ip.org
Sat Oct 28 01:49:58 UTC 2017


angel wrote:

> Core.stdc.signal.signal() requires that a signal handler function is 
> "nothrow @nogc @system".
> These attributes impose quite a limitation - one cannot even print which 
> signal was accepted.
'cause you CANNOT print in signal handler. you can do almost *nothing* in 
signal handler besides setting some variable. please, read the OS manuals 
about signals.


More information about the Digitalmars-d mailing list