usleep hangs indefinitely when using -threaded
Consider the following two-line program.
import System.Posix.Unistd
main = usleep 1000000
When compiled without -threaded, the program nicely sleeps for one second, as expected. When compiled with -threaded, however, the program simply hangs.
Trac metadata
Trac field | Value |
---|---|
Version | 6.6 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |