#1156: usleep hangs indefinitely when using -threaded
-------------------------------+--------------------------------------------
    Reporter:  Eelis           |       Owner:                        
        Type:  bug             |      Status:  new                   
    Priority:  normal          |   Milestone:                        
   Component:  Compiler        |     Version:  6.6                   
    Severity:  normal          |    Keywords:  usleep threaded unistd
  Difficulty:  Unknown         |    Testcase:                        
Architecture:  x86_64 (amd64)  |          Os:  Linux                 
-------------------------------+--------------------------------------------
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.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1156>
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

Reply via email to