Uninstall signal handlers
authorSylvain HENRY <hsyl20@gmail.com>
Wed, 2 Nov 2016 18:55:06 +0000 (14:55 -0400)
committerBen Gamari <ben@smart-cactus.org>
Wed, 2 Nov 2016 18:55:07 +0000 (14:55 -0400)
commit8a5960ad874d31fcf631b4d427ccd9fae571745c
tree084ebb82c66de2fd4ac44591e3b6918baad0c044
parent623b8e44b1647083ff5d85ef40b7cf88870acef5
Uninstall signal handlers

GHC installs signal handlers in runGhc/runGhcT to handle ^C but it
never uninstalls them.
It can be an issue, especially when using GHC as a library.

Test Plan: validate

Reviewers: bgamari, erikd, austin, simonmar

Reviewed By: bgamari, simonmar

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2633

GHC Trac Issues: #4162
compiler/main/GHC.hs
compiler/utils/Panic.hs
ghc/GHCi/UI.hs