#4504: "awaitSignal Nothing" does not block thread with -threaded
------------------------------------------+---------------------------------
Reporter: adept | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 7.0.2
Component: Runtime System | Version: 7.0.1
Resolution: fixed | Keywords:
Testcase: | Blockedby:
Difficulty: | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: Incorrect result at runtime |
------------------------------------------+---------------------------------
Changes (by igloo):
* status: new => closed
* resolution: => fixed
Comment:
All the patches looks merged to me.
If I understand correctly, the program needs to be changed to
{{{
module Main where
import System.Posix.Signals
import Control.Concurrent
main :: IO ()
main = do
blockSignals reservedSignals
awaitSignal Nothing >> yield
}}}
and that behaves correctly.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4504#comment:22>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs