Release console for ghci wrapper
Summary: It seems the call that caused issues with the gcc wrapper before was needed for the ghci wrapper in order for the child process to be the one handling console events. This code slightly refactors the wrappers to make sure only ghci calls FreeConsole and nothing else. Test Plan: ./validate , open ghci.exe press ctrl+c Reviewers: RyanGlScott, austin, hvr, bgamari Reviewed By: bgamari Subscribers: rwbarton, thomie, erikd GHC Trac Issues: #14150 Differential Revision: https://phabricator.haskell.org/D4028
Showing
- driver/gcc/gcc.c 1 addition, 1 deletiondriver/gcc/gcc.c
- driver/ghc/ghc.c 1 addition, 1 deletiondriver/ghc/ghc.c
- driver/ghci/ghci.c 11 additions, 2 deletionsdriver/ghci/ghci.c
- driver/haddock/haddock.c 1 addition, 1 deletiondriver/haddock/haddock.c
- driver/utils/cwrapper.c 8 additions, 1 deletiondriver/utils/cwrapper.c
- driver/utils/cwrapper.h 4 additions, 2 deletionsdriver/utils/cwrapper.h
Please register or sign in to comment