[GHC] #972: hWaitForInput documentation is wrong

GHC trac at galois.com
Sun Oct 29 15:04:56 EST 2006


#972: hWaitForInput documentation is wrong
-----------------------------------------+----------------------------------
    Reporter:  jcab at JCABs-Rumblings.com  |       Owner:               
        Type:  bug                       |      Status:  new          
    Priority:  normal                    |   Milestone:               
   Component:  Documentation             |     Version:  6.6          
    Severity:  normal                    |    Keywords:  hWaitForInput
  Difficulty:  Easy (1 hr)               |    Testcase:               
Architecture:  Unknown                   |          Os:  Unknown      
-----------------------------------------+----------------------------------
The documentation for System.IO.hWaitForInput states that "in the current
 implementation, (...) if t is non-zero, then all other concurrent threads
 are blocked until data is available"

 This is not true in GHC 6.6 on Windows. Both threads forked with forkIO
 and forkOS continue working normally.

 Most likely an oversight. Might be in more places.

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


More information about the Glasgow-haskell-bugs mailing list