
#7745: sleep interrupted in foreign call with GHC later than 7.2
------------------------------+---------------------------------------------
Reporter: daniel.is.fischer | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.6.1 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Blockedby:
Blocking: | Related:
------------------------------+---------------------------------------------
Noticed investigating
[http://stackoverflow.com/questions/15226806/importing-c-delay-function-
into-haskell-using-ffi this question]:
With GHC `>= 7.4`, a `sleep` in a foreign call is interrupted immediately,
GHC `< 7.4` let it sleep with the non-threaded runtime.
Test case:
{{{
#include