
#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): I've implemented a work-in-progress fix for GHC 8.2 [https://github.com/nh2/ghc/commit/d75bb46b6a16b4976a239442d90e5592ec439495 in this commit]. It's partly based on my older commit [https://github.com/nh2/ghc/commit/b23420378f68af9bddcced1cee08968779c505d0 b23420378f6]. It makes my example from the issue description work on the `-threaded` runtime on Linux (other platforms yet to be tested), but for unknown reason it doesn't fix it for the nonthreaded runtime. Maybe somehow in the nonthreaded runtime `timeout` doesn't actually throw the other thread the kill? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8684#comment:15 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler