#1198: Windows: hWaitForInput returns False for file handles, and doesn't work
properly for consoles
-------------------------------------+--------------------------------------
Reporter: igloo | Owner: simonmar
Type: bug | Status: closed
Priority: low | Milestone: 6.10.1
Component: libraries/base | Version: 6.6
Severity: normal | Resolution: fixed
Keywords: | Difficulty: Unknown
Testcase: readwrite002, hReady001 | Architecture: Unknown
Os: Windows |
-------------------------------------+--------------------------------------
Changes (by simonmar):
* status: new => closed
* resolution: => fixed
Comment:
Ok, I believe I've fixed this now.
{{{
Tue Jul 8 14:42:54 GMT Daylight Time 2008 Simon Marlow
<[EMAIL PROTECTED]>
* FIX #1198: hWaitForInput on Windows
Now we do the appropriate magic in fdReady() to detect when there is
real input available, as opposed to uninteresting console events.
Wed Jul 9 12:10:08 GMT Daylight Time 2008 Simon Marlow
<[EMAIL PROTECTED]>
* Make threadWaitRead/threadWaitWrite partially useable on Windows
They work with -threaded by calling fdReady() in a separate thread.
"threadWaitRead 0" also works without -threaded (because we happen to
know it's virtually equivalent to "hWaitForInput stdin (-1)").
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1198#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs