From 463f4e4efbd7ab919aaed55e07cd7c8012bf3e2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Tue, 5 Jun 2018 12:01:20 +0200 Subject: [PATCH] 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. --- source/vibe/core/core.d | 1 - 1 file changed, 1 deletion(-) diff --git a/source/vibe/core/core.d b/source/vibe/core/core.d index 7746fa2..614eb4d 100644 --- a/source/vibe/core/core.d +++ b/source/vibe/core/core.d @@ -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); }