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:
33273ce
)
Turn the "too many hs_exit()s" fatal error into a warning
author
Simon Marlow
<simonmar@microsoft.com>
Wed, 5 Apr 2006 14:53:16 +0000
(14:53 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Wed, 5 Apr 2006 14:53:16 +0000
(14:53 +0000)
ghc/rts/RtsStartup.c
patch
|
blob
|
history
diff --git
a/ghc/rts/RtsStartup.c
b/ghc/rts/RtsStartup.c
index
32c73f4
..
147de7b
100644
(file)
--- a/
ghc/rts/RtsStartup.c
+++ b/
ghc/rts/RtsStartup.c
@@
-313,7
+313,8
@@
void
hs_exit(void)
{
if (hs_init_count <= 0) {
- barf("too many hs_exit()s");
+ errorBelch("warning: too many hs_exit()s");
+ return;
}
hs_init_count--;
if (hs_init_count > 0) {