Re: [GHC] #804: Signal handlers always installed, evem in a DLL
#804: Signal handlers always installed, evem in a DLL --+- Reporter: guest | Owner: igloo Type: bug | Status: closed Priority: normal| Milestone: 6.6.1 Component: Compiler |Version: 6.4.2 Severity: normal| Resolution: fixed Keywords:| Difficulty: Easy (1 hr) Testcase:| Architecture: Unknown Os: Unknown | --+- Changes (by igloo): * resolution: = fixed * status: new = closed Comment: I've added a `--install-signal-handlers=yes|no` RTS flag to the 6.6 branch and HEAD. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/804 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #804: Signal handlers always installed, evem in a DLL
#804: Signal handlers always installed, evem in a DLL --+- Reporter: guest | Owner: igloo Type: bug | Status: new Priority: normal| Milestone: 6.6.1 Component: Compiler |Version: 6.4.2 Severity: normal| Resolution: Keywords:| Difficulty: Easy (1 hr) Testcase:| Architecture: Unknown Os: Unknown | --+- Changes (by igloo): * owner: = igloo -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/804 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #804: Signal handlers always installed, evem in a DLL
#804: Signal handlers always installed, evem in a DLL --+- Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone: 6.6.1 Component: Compiler |Version: 6.4.2 Severity: normal| Resolution: Keywords:| Difficulty: Easy (1 hr) Testcase:| Architecture: Unknown Os: Unknown | --+- Changes (by simonmar): * difficulty: Unknown = Easy (1 hr) -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/804 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #804: Signal handlers always installed, evem in a DLL
#804: Signal handlers always installed, evem in a DLL --+- Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone: 6.6.1 Component: Compiler |Version: 6.4.2 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase:| Architecture: Unknown Os: Unknown | --+- Changes (by igloo): * milestone: 6.6 = 6.6.1 * testcase: = -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/804 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #804: Signal handlers always installed, evem in a DLL
#804: Signal handlers always installed, evem in a DLL ---+ Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone: 6.6 Component: Compiler |Version: 6.4.2 Severity: normal| Resolution: Keywords:| Os: Unknown Difficulty: Unknown | Architecture: Unknown ---+ Comment (by simonpj): We agree a flag is reasonable. Now all we need is to implement it. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/804 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #804: Signal handlers always installed, evem in a DLL
#804: Signal handlers always installed, evem in a DLL ---+ Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone: 6.6 Component: Compiler |Version: 6.4.2 Severity: normal| Resolution: Keywords:| Os: Unknown Difficulty: Unknown | Architecture: Unknown ---+ Changes (by simonpj): * cc: = [EMAIL PROTECTED] Comment: Reason that installing signal handlers is bad: if the events happen after the DLL has been unloaded it will dispatch into non-loaded code. This is, obviously, bad. Another solution would be to uninstall them when the DLL is unloaded, but not installing them in the first place is probably the right thing. cf dup #747 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/804 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
[GHC] #804: Signal handlers always installed, evem in a DLL
#804: Signal handlers always installed, evem in a DLL -+-- Reporter: guest |Owner: Type: bug | Status: new Priority: normal|Milestone: Component: Compiler | Version: 6.4.2 Severity: normal| Keywords: Os: Unknown | Difficulty: Unknown Architecture: Unknown | -+-- Even when building a DLL the GHC runtime system will install signal handlers for SIGINT, etc. This done in RtsStartup.c by calling initUserSignals() and initDefaultHandlers(). This is all good when running a standalone program, but very dubious if generating a DLL. For a DLL it's likely that the main program will handle signals, and the GHC-RTS should keep its greedy little paws away from the signals. :) A flag to control this would be appreciated. -- Lennart -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/804 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs