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:
parent
dfd3d2fd70
commit
463f4e4efb
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue