#5797: readRawBufferPtr cannot be interrupted by exception on Windows with
-threaded
-------------------------------+--------------------------------------------
    Reporter:  joeyadams       |       Owner:                             
        Type:  bug             |      Status:  new                        
    Priority:  normal          |   Milestone:                             
   Component:  libraries/base  |     Version:  7.2.2                      
    Keywords:                  |          Os:  Windows                    
Architecture:  x86             |     Failure:  Incorrect result at runtime
  Difficulty:  Unknown         |    Testcase:                             
   Blockedby:                  |    Blocking:                             
     Related:                  |  
-------------------------------+--------------------------------------------

Comment(by joeyadams):

 No, threadWaitRead is not implemented on Windows with -threaded

 What does threadWaitRead do on Windows (with -threaded) anyway?  I wrote a
 test program that calls threadWaitRead on a socket without available data.
 It does not wake up when the server sends data, but it does accept an
 asynchronous exception.

 When I use recv instead, the opposite happens.  Namely, recv unblocks when
 data is sent from the server, but cannot be stopped by an asynchronous
 exception.

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