[Haskell-cafe] Re: I/O system brokenness with named pipes
Simon Marlow
simonmarhaskell at gmail.com
Wed Apr 16 19:02:59 EDT 2008
Donn Cave wrote:
> I have run into this problem, with Network.Socket (socket). If I
> remember right,
> ktrace showed me what was happening. This isn't my favorite thing about
> Haskell.
> Is there even a means provided to set it back to blocking?
There isn't a way right now to open a file using a blocking FD, however
the IO library does support using blocking FDs (the std handles are left
in blocking mode to avoid causing problems with pipes). We could
certainly add an interface to let you open files in blocking mode - just
submit a feature request via GHC's Trac and we'll try to get around to
it (or better still, send us a patch... the code is in
GHC.Handle.fdToHandle).
Cheers,
Simon
More information about the Haskell-Cafe
mailing list