Cannot killThread in listen/accept on Windows threaded runtime
The killThread is not able to kill threads accepting socket connections on Windows.
Run attached file either in GHCi:
runghc.exe ListenOn.hs
or compile threaded:
ghc --make -threaded ListenOn.hs
Resulting binary hangs.
Expected behavior: should finish without problems.
Non-threaded runtime produces expected behavior. Seems to work correctly on Linux.
Affected: ghc-6.10.4 and ghc-6.12.1.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.12.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Runtime System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |