[GHC] #8684: hWaitForInput cannot be interrupted by async exceptions on unix

GHC ghc-devs at haskell.org
Thu Nov 16 00:29:51 UTC 2017


#8684: hWaitForInput cannot be interrupted by async exceptions on unix
-------------------------------------+-------------------------------------
        Reporter:  nh2               |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Core Libraries    |              Version:  7.6.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:  13497, 13525      |             Blocking:
 Related Tickets:  #12912, #13525    |  Differential Rev(s):  Phab:D42
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by nh2):

 Hmm, in
 [https://books.google.ch/books?id=r5tCAwAAQBAJ&pg=PT636&lpg=PT636&dq=CancelSynchronousIo++ERROR_NOT_FOUND&source=bl&ots=PS_yalzoMX&sig
 =hM-
 5HzjZGwu66hal48xjV50kYsU&hl=en&sa=X&ved=0ahUKEwj0uvaI1sHXAhXDHxoKHdsDB_YQ6AEIRDAF#v=onepage&q=CancelSynchronousIo%20%20ERROR_NOT_FOUND&f=false
 this book] **Windows via C/C++** it says

 > Note that the thread calling `CancelSynchronousIo` doesn't really know
 where the thread that called the synchronous operation is. The thread
 could have been pre-empted and it has yet to actually communicate with the
 device; it could be suspended, waiting for the device to respond; or the
 device could have just responded, and the thread is in the process of
 returning from its call. If `CancelSynchronousIo` is called when the
 specified thread is not actually suspended waiting for the device to
 respond, `CancelSynchronousIo` returns `FALSE` and `GetLastError` returns
 error not found.

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


More information about the ghc-tickets mailing list