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

GHC ghc-devs at haskell.org
Tue Nov 12 22:54:52 UTC 2013


#7229: Detecting if a process was killed by a signal is impossible
--------------------------------------+------------------------------------
        Reporter:  benmachine         |            Owner:
            Type:  bug                |           Status:  new
        Priority:  highest            |        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 Herbert Valerio Riedel <hvr@…>):

 In [changeset:"ffe7773c7fd222a946d17f489020098a45b5c8af/process"]:
 {{{
 #!CommitTicketReference repository="process"
 revision="ffe7773c7fd222a946d17f489020098a45b5c8af"
 Change exit code encoding of `waitForProcess` yet again

 This changes the exit code encoding from `(128+signum)`
 (as introduced via 5403824028) to

 {{{#!hs
 if coredump then 0x8000 else 0 .|. signum `shiftL` 8 .|. exitstatus
 }}}

 in order to address the `process`-package part of #7229

 Signed-off-by: Herbert Valerio Riedel <hvr at gnu.org>
 }}}

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


More information about the ghc-tickets mailing list