[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
Sun Sep 24 18:33:31 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-):

 I think the code has to be slightly refactored. either a Boolean passed to
 `run` that indicates to call `FreeConsole` after the `CreateProcess` call,
 or run should return the process to wait on so callers can do custom stuff
 before blocking.

 I think `FreeConsole` has to be called after the new process is made so
 there are more than one process sharing the console, otherwise a call to
 `FreeConsole` will destroy the console and the new process won't have a
 console to use. At least I think...

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14150#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list