Skip to content

Commit

Permalink
Disable graceful shutdown for SIGABRT on Windows.
Browse files Browse the repository at this point in the history
Since this is meant specifically for killing the process in bad program states, invoking the normal event loop shutdown code is too risky.
  • Loading branch information
s-ludwig committed Jun 5, 2018
1 parent dfd3d2f commit 463f4e4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion source/vibe/core/core.d
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 463f4e4

Please sign in to comment.