projects
/
haskell-directory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b84927
)
[project @ 2005-01-23 20:20:55 by wolfgang]
author
wolfgang
<unknown>
Sun, 23 Jan 2005 20:20:55 +0000
(20:20 +0000)
committer
wolfgang
<unknown>
Sun, 23 Jan 2005 20:20:55 +0000
(20:20 +0000)
Flush stdout and stderr also when exiting due to an ExitException.
GHC/TopHandler.lhs
patch
|
blob
|
history
diff --git
a/GHC/TopHandler.lhs
b/GHC/TopHandler.lhs
index
6082a03
..
7e5bca4
100644
(file)
--- a/
GHC/TopHandler.lhs
+++ b/
GHC/TopHandler.lhs
@@
-64,8
+64,8
@@
real_handler ex =
safeExit 2
-- only the main thread gets ExitException exceptions
- ExitException ExitSuccess -> safeExit 0
- ExitException (ExitFailure n) -> safeExit n
+ ExitException ExitSuccess -> cleanUp >> safeExit 0
+ ExitException (ExitFailure n) -> cleanUp >> safeExit n
other -> do
reportError other