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

GHC ghc-devs
Thu Oct 10 20:25:40 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
       Keywords:                    |  Operating System:  Linux
   Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:                    |
------------------------------------+---------------------------------
 Frankly, I'm not sure if this is a bug, but the forkProcess documentation
 says nothing about it. This can lead to problems when writing a multi-
 threaded daemon that expects async exceptions to work as they usually
 would.

 FWIW, I have looked at several of the libraries on hackage that handle
 daemonization, and none of them seem to deal with this by explicitly
 unmasking exceptions when running the daemon IO action.

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



More information about the ghc-tickets mailing list