Commit 4ae1107d authored by Simon Marlow's avatar Simon Marlow

Turn the "too many hs_exit()s" fatal error into a warning

parent 33273cef
...@@ -313,7 +313,8 @@ void ...@@ -313,7 +313,8 @@ void
hs_exit(void) hs_exit(void)
{ {
if (hs_init_count <= 0) { if (hs_init_count <= 0) {
barf("too many hs_exit()s"); errorBelch("warning: too many hs_exit()s");
return;
} }
hs_init_count--; hs_init_count--;
if (hs_init_count > 0) { if (hs_init_count > 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment