D's (rather sparse) official documentation doesn't have anything about handling system signals on *nx or Windows.
The system
module only has Endian
and OS
, syserror
is deprecated / only for Windows errortext, and signals
is about message-passing, not system signals.
Is there a way (in pure D) to install a signal handler, to capture and allow me to react to certain signals at runtime, or, at least a way to detect that a signal was recieved and an exception I can catch
?
i.e, in Python, a simple example is:
import signal
signal.signal(signal.SIGSEGV, myFunctionToHandleSEGV)
# ...