projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b47555c
)
change topHandlerFastExit to topHandler, so the terminal state gets restored (#2228)
author
Simon Marlow
<simonmar@microsoft.com>
Tue, 29 Apr 2008 22:24:42 +0000
(22:24 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Tue, 29 Apr 2008 22:24:42 +0000
(22:24 +0000)
compiler/ghci/InteractiveUI.hs
patch
|
blob
|
history
diff --git
a/compiler/ghci/InteractiveUI.hs
b/compiler/ghci/InteractiveUI.hs
index
db7844d
..
26d548d
100644
(file)
--- a/
compiler/ghci/InteractiveUI.hs
+++ b/
compiler/ghci/InteractiveUI.hs
@@
-454,12
+454,8
@@
runGHCi paths maybe_exprs = do
-- current progname in the exception text:
-- <progname>: <exception>
io $ withProgName (progname st)
-- current progname in the exception text:
-- <progname>: <exception>
io $ withProgName (progname st)
- -- The "fast exit" part just calls exit()
- -- directly instead of doing an orderly
- -- runtime shutdown, otherwise the main
- -- GHCi thread will complain about being
- -- interrupted.
- $ topHandlerFastExit e
+ -- this used to be topHandlerFastExit, see #2228
+ $ topHandler e
runCommands' handle (return Nothing)
-- and finally, exit
runCommands' handle (return Nothing)
-- and finally, exit