[GHC] #14150: Ctrl+C causes GHCi 8.2.1 to "exit" in Windows (which didn't happen in 8.0.2)
GHC
ghc-devs at haskell.org
Tue Aug 29 16:25:45 UTC 2017
#14150: Ctrl+C causes GHCi 8.2.1 to "exit" in Windows (which didn't happen in
8.0.2)
-------------------------------------+-------------------------------------
Reporter: RyanGlScott | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 8.2.1
Resolution: | Keywords:
Operating System: Windows | Architecture:
Type of failure: Incorrect result | Unknown/Multiple
at runtime | Test Case:
Blocked By: | Blocking:
Related Tickets: #3081 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Phyx-):
Then I know what's going on, the `FreeConsole()` call that was there in
the `cwrapper.c` before that broke under Windows 10 recently was detaching
the caller from the console.
I suspect now that this was done to now have the caller still handle
signals. The issue was by putting it in `cwrapper` it broke in cases where
the caller should handle it. such as when GHC calls GCC.
So the call should actually be in `ghci.c` not in `cwrapper.c`, since here
we *do* have an interactive session.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14150#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list