Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alfredo Di Napoli
GHC
Commits
a8a47739
Commit
a8a47739
authored
Jan 27, 2010
by
Simon Marlow
Browse files
fix warning on Windows
parent
243c0432
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/utils/Panic.lhs
View file @
a8a47739
...
...
@@ -197,14 +197,13 @@ installSignalHandlers = do
[] -> 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.
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 ()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment