[GHC] #13519: hWaitForInput does not work on linux.

#13519: hWaitForInput does not work on linux. -------------------------------------+------------------------------------- Reporter: | Owner: (none) junji.hashimoto | Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- hWaitForInput does not work on linux. When hWaitForInput has non-zero waiting time, it always fails. The code is following ghci-code. This is because inputReady.c (https://github.com/ghc/ghc/blob/ghc-8.0/libraries/base/cbits/inputReady.c#L2...) does not allow 'msecs != 0'. {{{ $ ghci GHCi, version 8.0.2: http://www.haskell.org/ghc/ :? for help Prelude> :m + System.IO Prelude System.IO> f <-openFile "stack.yaml" ReadMode Prelude System.IO> hWaitForInput f 10 fdReady: msecs != 0, this shouldn't happenAborted (core dumped) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13519 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13519: hWaitForInput does not work on linux. -------------------------------------+------------------------------------- Reporter: junji.hashimoto | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Core Libraries | Version: 8.0.2 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by junji.hashimoto): * component: Compiler => Core Libraries * os: Unknown/Multiple => Linux * failure: None/Unknown => Incorrect result at runtime -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13519#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13519: hWaitForInput does not work on linux. -------------------------------------+------------------------------------- Reporter: junji.hashimoto | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Core Libraries | Version: 8.0.2 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by junji.hashimoto): This is the same as a comment of https://ghc.haskell.org/trac/ghc/ticket/8684. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13519#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC