On 29 Nov 2012 12:27 PM, "Leon Smith" <leon.p.sm...@gmail.com> wrote:
>
> Well,  I took Bardur's suggestion and avoided all the complexities of
GHC's IO stack and simply used System.Posix.IO and Foreign.    This appears
to work,  but for better or worse,   it is using blocking calls to the
"read" system call and is not integrated with GHC's IO manager.   This
shouldn't be an issue for my purposes,  but I suppose it's worth pointing
out.

Reading from an fd corresponding to an actual file is always blocking.
select() will always indicate that the fd is ready for reading and writing,
and I think epoll() will refuse to operate on the fd at all.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to