Free Win32 Handles on shutdown
[ghc-hetmet.git] / rts / win32 / ConsoleHandler.c
index cc0365b..308b77b 100644 (file)
@@ -46,6 +46,14 @@ initUserSignals(void)
     return;
 }
 
+void
+finiUserSignals(void)
+{
+    if (hConsoleEvent != INVALID_HANDLE_VALUE) {
+        CloseHandle(hConsoleEvent);
+    }
+}
+
 /*
  * Function: shutdown_handler()
  *