X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FGHC.hs;h=eabcafcaf436e93985c9ad7709b58a0c39df6293;hb=27218ba74f28c527e0b3e88195169b6949d98899;hp=6295d7dcbd6a5fec20983bf22f1f96cfd2ab7907;hpb=ab22f4e6456820c1b5169d75f5975a94e61f54ce;p=ghc-hetmet.git diff --git a/compiler/main/GHC.hs b/compiler/main/GHC.hs index 6295d7d..eabcafc 100644 --- a/compiler/main/GHC.hs +++ b/compiler/main/GHC.hs @@ -333,7 +333,7 @@ newSession :: GhcMode -> Maybe FilePath -> IO Session newSession mode mb_top_dir = do -- catch ^C main_thread <- myThreadId - putMVar interruptTargetThread [main_thread] + modifyMVar_ interruptTargetThread (return . (main_thread :)) installSignalHandlers dflags0 <- initSysTools mb_top_dir defaultDynFlags