Ticket #1156 (closed bug: duplicate)
usleep hangs indefinitely when using -threaded
| Reported by: | Eelis | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.8.1 |
| Component: | Runtime System | Version: | 6.6 |
| Keywords: | usleep threaded unistd | Cc: | |
| Operating System: | Linux | Architecture: | x86_64 (amd64) |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
