On Apr 11, 2008, at 6:33 , Don Stewart wrote:

But I can't use writeFile to write data to it.  Worse, it returns:

*** Exception: /tmp/bakroller.zD0xHj/fifo: openFile: does not exist
    (No such device or address)

Hmm, I can get this to work, but only if I have another process waiting
on the pipe already:

Yep; that's one of the tricky parts of FIFOs. If you don't have the read side *always* open, it behaves very nonintuitively. (But with the read side always open, you will never receive an EOF.)

This has nothing to do with Haskell; it's just the way FIFOs work.

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED]
system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED]
electrical and computer engineering, carnegie mellon university    KF8NH


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

Reply via email to