[GHC] #8433: forkProcess masks async exceptions inside the child process

GHC ghc-devs at haskell.org
Fri Nov 8 12:16:07 UTC 2013


#8433: forkProcess masks async exceptions inside the child process
-----------------------------------+------------------------------------
        Reporter:  joeyh           |            Owner:
            Type:  bug             |           Status:  new
        Priority:  normal          |        Milestone:
       Component:  libraries/unix  |          Version:  7.6.3
      Resolution:                  |         Keywords:
Operating System:  Linux           |     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:"897d66ad9d77d17dae1b5ac94af792e671a76c13/unix"]:
 {{{
 #!CommitTicketReference repository="unix"
 revision="897d66ad9d77d17dae1b5ac94af792e671a76c13"
 Fix `forkProcess` to inherit caller's `MaskingState`

 ...and while at it, use `bracket` to fix a potential resource leak due
 to `freeStablePtr` not being called if `throwErrnoIfMinus1` throws an
 exception.

 This fixes #8433

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

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


More information about the ghc-tickets mailing list