#4144: Exception: ToDo: hGetBuf - when using custom handle infrastructure -------------------------------+-------------------------------------------- Reporter: AntoineLatter | Owner: simonmar Type: bug | Status: patch Priority: high | Milestone: 7.8.1 Component: libraries/base | Version: 7.6.1 Resolution: | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Runtime crash | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+--------------------------------------------
Comment(by simonmar): You can't do an atomic non-blocking read, e.g. if another thread happened to read from the console and grabbed the character after you had called `fdReady` but before calling `read`, then the `read` would block. It is unlikely to happen, because someone would have to use raw `System.Win32` operations to get separate access to the console or whatever, but it's possible. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4144#comment:13> 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