On Apr 10, 2008, at 21:34 , John Goerzen wrote:
So I have a need to write data to a POSIX named pipe (aka FIFO).  Long
story involving a command that doesn't have an option to read data
from stdin, but can from a named pipe.

I have created the named pipe from Haskell no problem.

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)

The "does not exist" is misleading: ENXIO ("No such device or address"), unless it's being abused by the runtime, indicates something's wrong at the kernel level when trying to associate the FIFO.

Using FIFOs properly is actually rather tricky and fidgety. Can you provide the actual code you're using?

--
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