shutdownHaskellAndExit: just do a normal hs_exit() (#5402)
authorSimon Marlow <marlowsd@gmail.com>
Thu, 15 Sep 2016 14:53:00 +0000 (15:53 +0100)
committerSimon Marlow <marlowsd@gmail.com>
Fri, 23 Sep 2016 04:39:31 +0000 (13:39 +0900)
commit9cbcdb4863064753df0fff9054b7b7c6b3188b64
tree76870818de45c3f1c71eaa31778005f7a161bc90
parent8bd3d417e67e5e938dd5bfc640c3efbb683ee309
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.
rts/RtsStartup.c