[GHC] #7229: Detecting if a process was killed by a signal is impossible

GHC ghc-devs at haskell.org
Mon Nov 11 16:28:24 UTC 2013


#7229: Detecting if a process was killed by a signal is impossible
--------------------------------------+------------------------------------
        Reporter:  benmachine         |            Owner:
            Type:  bug                |           Status:  new
        Priority:  high               |        Milestone:  7.8.1
       Component:  libraries/process  |          Version:
      Resolution:                     |         Keywords:
Operating System:  Unknown/Multiple   |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown       |       Difficulty:  Unknown
       Test Case:                     |       Blocked By:
        Blocking:                     |  Related Tickets:
--------------------------------------+------------------------------------

Comment (by duncan):

 What would `exitWith (ExitTerminated signal)` mean on Windows?

 Having the abstract `ExitStatus` type as Simon and I proposed would not
 have that issue, since it's only for the reading side, not the throwing
 side, and on Windows can always return Nothing.

 My view is still that using a structured type is a lot nicer than using a
 bit twiddling encoding. Related to this is that we want an extra
 `CreateProcess` option to do the WCE automatically. We still have the mad
 situation that System.Cmd can mask ctl-c for us, but System.Process lacks
 that feature.

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


More information about the ghc-tickets mailing list