#4504: "awaitSignal Nothing" does not block thread with -threaded
---------------------------------+------------------------------------------
Reporter: adept | Owner: adept
Type: bug | Status: patch
Priority: normal | Milestone: 7.2.1
Component: Runtime System | Version: 7.0.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: Incorrect result at runtime
---------------------------------+------------------------------------------
Comment(by simonmar):
Oh, a better alternative might be this:
{{{
-- | A set of signals reserved for use by the implementation. In GHC,
this will normally
-- include either `sigVTALRM` or `sigALRM`.
reservedSignals :: SignalSet
}}}
And the documentation for `awaitSignals` would suggest using `awaitSignals
(Just reservedSignals)`
This could be implemented using an RTS API like
{{{
int getTimerSignal(void);
}}}
to avoid all the `#ifdef` stuff, and keep the choice about which signal is
reserved in just one place.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4504#comment:9>
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