Disable graceful shutdown for SIGABRT on Windows.

Since this is meant specifically for killing the process in bad program states, invoking the normal event loop shutdown code is too risky.
This commit is contained in:
Sönke Ludwig 2018-06-05 12:01:20 +02:00
parent dfd3d2fd70
commit 463f4e4efb

View file

@ -1271,7 +1271,6 @@ private void setupSignalHandlers()
version(Windows){
// WORKAROUND: we don't care about viral @nogc attribute here!
import std.traits;
signal(SIGABRT, cast(ParameterTypeTuple!signal[1])&onSignal);
signal(SIGTERM, cast(ParameterTypeTuple!signal[1])&onSignal);
signal(SIGINT, cast(ParameterTypeTuple!signal[1])&onSignal);
}