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
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to