Windows DLLs: disable extra shutdownHaskell() when unloading the RTS DLL
authorBen.Lippmeier@anu.edu.au <unknown>
Tue, 17 Nov 2009 05:06:48 +0000 (05:06 +0000)
committerBen.Lippmeier@anu.edu.au <unknown>
Tue, 17 Nov 2009 05:06:48 +0000 (05:06 +0000)
rts/RtsDllMain.c

index 250b63e..3e5af68 100644 (file)
@@ -30,7 +30,11 @@ DllMain ( HINSTANCE hInstance
    *       you pass to the RTS.
    */
   switch (reason) {
-  case DLL_PROCESS_DETACH: shutdownHaskell();
+  
+  // shutdownHaskelAndExit() is already being called,
+  //   so I don't think we need this. BL 2009/11/17
+  //case DLL_PROCESS_DETACH: shutdownHaskell();
   }
   return TRUE;
 }