[Haskell-cafe] I/O system brokenness with named pipes

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Fri Apr 11 08:53:12 EDT 2008

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] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

More information about the Haskell-Cafe mailing list