[GHC] #1198: Windows: hWaitForInput returns False for file
handles, and doesn't work properly for consoles
GHC
trac at galois.com
Wed Jul 9 07:13:26 EDT 2008
#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
<marlowsd at gmail.com>
* 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
<marlowsd at gmail.com>
* 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
More information about the Glasgow-haskell-bugs
mailing list