Skip to content
Snippets Groups Projects
Commit 9cbcdb48 authored by Simon Marlow's avatar Simon Marlow
Browse files

shutdownHaskellAndExit: just do a normal hs_exit() (#5402)

If we want to keep the RTS alive a bit longer by having another
hs_init()/hs_exit() pair in a library that will destruct itself after
main() has exited, then the forced shutdown here thwarts that.

I think we just "fixed" #5402 in the wrong way before, this should be
better.
parent 8bd3d417
No related branches found
No related tags found
No related merge requests found
......@@ -466,10 +466,6 @@ void
shutdownHaskellAndExit(int n, int fastExit)
{
if (!fastExit) {
// even if hs_init_count > 1, we still want to shut down the RTS
// and exit immediately (see #5402)
hs_init_count = 1;
// we're about to exit(), no need to wait for foreign calls to return.
hs_exit_(rtsFalse);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment