[GHC] #7934: usleep hangs, no threads

GHC cvs-ghc at haskell.org
Sun May 26 00:41:26 CEST 2013


#7934: usleep hangs, no threads
----------------------------------------+-----------------------------------
Reporter:  gelisam                      |          Owner:                
    Type:  bug                          |         Status:  new           
Priority:  normal                       |      Component:  Runtime System
 Version:  7.4.2                        |       Keywords:                
      Os:  MacOS X                      |   Architecture:  x86_64 (amd64)
 Failure:  Incorrect result at runtime  |      Blockedby:                
Blocking:                               |        Related:  1156          
----------------------------------------+-----------------------------------

Comment(by gelisam):

 Proper formatting of the code snippet:

  {{{
 import System.Posix.Unistd
 main = flip mapM_ [0..] $ \i -> do
   usleep 100000
   print i
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7934#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list