#4942: GHC.ConsoleHandler does not call back application when Close button is
pressed
------------------------+---------------------------------------------------
Reporter: Amatic | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.4.1
Component: GHC API | Version: 6.12.3
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Windows | Blocking:
Architecture: x86 | Failure: Incorrect result at runtime
------------------------+---------------------------------------------------
Comment(by simonmar):
I think `generic_handler` is only run if a handler is installed. Although
looking at the code that doesn't seem to apply if a handler is installed
and then uninstalled again. That looks like a bug, becuase then
`stg_pending_buf` will fill up.
You'll notice that `rts_ConsoleHandlerDone` is completely bogus (see my
comment). However, we could do something similar at the Haskell level -
look at the way exit is handled in `GHC.TopHandler`. Having the handler
automatically exit the process after running is an interesting idea, but I
wonder if it ought to be under the control of the handler (perhaps by
returning a `Bool`?).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4942#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs