How does the IO manager handle reading regular files?

Ben Gamari ben at
Mon May 14 21:22:53 UTC 2018

Niklas Hamb├╝chen <mail at> writes:

> So GHC is trying to use `O_NONBLOCK` on regular files, which cannot
> work and will block when used through unsafe foreign calls like that.

> Is this a known problem?
Doesn't sound familiar to me. Sounds like a ticket is in order.

Thanks for spotting all of these nasty I/O issues; who knew there could
be so many of them.


- Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <>

More information about the ghc-devs mailing list