[GHC] #4162: GHC API messes up signal handlers

GHC ghc-devs at haskell.org
Sun Nov 23 18:58:35 UTC 2014


#4162: GHC API messes up signal handlers
-------------------------------------+-------------------------------------
              Reporter:  jcpetruzza  |            Owner:
                  Type:  bug         |           Status:  new
              Priority:  low         |        Milestone:  7.10.1
             Component:  GHC API     |          Version:  6.12.3
            Resolution:              |         Keywords:
      Operating System:              |     Architecture:  Unknown/Multiple
  Unknown/Multiple                   |       Difficulty:  Unknown
       Type of failure:              |       Blocked By:
  None/Unknown                       |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
Changes (by literon):

 * difficulty:   => Unknown


Comment:

 I would appreciate if this were addressed. In particular, I use GHC API
 for typechecking only and don't intend to evaluate expressions. I would
 handle killing the GHC thread myself if needed so.

 At minimum, a documentation comment should be added to `runGhc` that it
 installs signal handlers without restoring them to spare people from
 surprises.

 Note that non-responsiveness to Ctrl-C can be worked around by using
 `runGHC $ installHandler sigINT Default Nothing >> ...`.

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


More information about the ghc-tickets mailing list