projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
243c043
)
fix warning on Windows
author
Simon Marlow
<marlowsd@gmail.com>
Wed, 27 Jan 2010 16:29:54 +0000
(16:29 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Wed, 27 Jan 2010 16:29:54 +0000
(16:29 +0000)
compiler/utils/Panic.lhs
patch
|
blob
|
history
diff --git
a/compiler/utils/Panic.lhs
b/compiler/utils/Panic.lhs
index
0833de8
..
ee06777
100644
(file)
--- a/
compiler/utils/Panic.lhs
+++ b/
compiler/utils/Panic.lhs
@@
-197,14
+197,13
@@
installSignalHandlers = do
[] -> return ()
(thread:_) -> throwTo thread interrupt_exn
[] -> return ()
(thread:_) -> throwTo thread interrupt_exn
- fatal_signal n = throwTo main_thread (Signal (fromIntegral n))
-
--
#if !defined(mingw32_HOST_OS)
_ <- installHandler sigQUIT (Catch interrupt) Nothing
_ <- installHandler sigINT (Catch interrupt) Nothing
-- see #3656; in the future we should install these automatically for
-- all Haskell programs in the same way that we install a ^C handler.
--
#if !defined(mingw32_HOST_OS)
_ <- installHandler sigQUIT (Catch interrupt) Nothing
_ <- installHandler sigINT (Catch interrupt) Nothing
-- see #3656; in the future we should install these automatically for
-- all Haskell programs in the same way that we install a ^C handler.
+ let fatal_signal n = throwTo main_thread (Signal (fromIntegral n))
_ <- installHandler sigHUP (Catch (fatal_signal sigHUP)) Nothing
_ <- installHandler sigTERM (Catch (fatal_signal sigTERM)) Nothing
return ()
_ <- installHandler sigHUP (Catch (fatal_signal sigHUP)) Nothing
_ <- installHandler sigTERM (Catch (fatal_signal sigTERM)) Nothing
return ()