[GHC] #5402: Exit code is wrong with dynamically loaded libraries
GHC
ghc-devs at haskell.org
Fri Sep 23 04:39:59 UTC 2016
#5402: Exit code is wrong with dynamically loaded libraries
-------------------------------------+------------------------------------
Reporter: Lennart | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 7.2.2
Component: Runtime System | Version: 7.1
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Test Case: ffi/should_run/5402
Blocked By: | Blocking:
-------------------------------------+------------------------------------
Comment (by Simon Marlow <marlowsd@…>):
In [changeset:"9cbcdb4863064753df0fff9054b7b7c6b3188b64/ghc"
9cbcdb48/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="9cbcdb4863064753df0fff9054b7b7c6b3188b64"
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.
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/5402#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list