On 9 December 2012 10:29, Leon Smith <leon.p.sm...@gmail.com> wrote:
> On Thu, Dec 6, 2012 at 5:23 PM, Brandon Allbery <allber...@gmail.com> wro\
>>
>> Both should be cdevs, not files, so they do not go through the normal
>> filesystem I/O pathway in the kernel and should support select()/poll().
>> ("ls -l", the first character should be "c" instead of "-" indicating
>> character-mode device nodes.)  If ghc is not detecting that, then *that* is
>> indeed an I/O manager issue.
>
>
> The issue here is that if you look at the source of fdReadBuf,  you see that
> it's a plain system call without any reference to GHC's (relatively new) IO
> manager.

What if you use threadWaitRead on the fd before you read from it?

http://hackage.haskell.org/packages/archive/base/latest/doc/html/Control-Concurrent.html#v:threadWaitRead

Bas

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to