projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08617e7
)
docs about how exceptions are handled by forkIO'd threads (#2651)
author
Simon Marlow
<marlowsd@gmail.com>
Thu, 16 Oct 2008 10:04:10 +0000
(10:04 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Thu, 16 Oct 2008 10:04:10 +0000
(10:04 +0000)
GHC/Conc.lhs
patch
|
blob
|
history
diff --git
a/GHC/Conc.lhs
b/GHC/Conc.lhs
index
0c87603
..
96e00e0
100644
(file)
--- a/
GHC/Conc.lhs
+++ b/
GHC/Conc.lhs
@@
-204,6
+204,11
@@
library that uses thread-local storage, use 'Control.Concurrent.forkOS' instead.
GHC note: the new thread inherits the /blocked/ state of the parent
(see 'Control.Exception.block').
+
+The newly created thread has an exception handler that discards the
+exceptions 'BlockedOnDeadMVar', 'BlockedIndefinitely', and
+'ThreadKilled', and passes all other exceptions to the uncaught
+exception handler (see 'setUncaughtExceptionHandler').
-}
forkIO :: IO () -> IO ThreadId
forkIO action = IO $ \ s ->