Re: [Haskell-cafe] writing to a fifo when the reader stops reading

2011-03-14 Thread Brandon S Allbery KF8NH
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/13/11 03:16 , bri...@aracnet.com wrote: ghc: fdWriteBuf: resource vanished (Broken pipe) which make sense, sort of. I write a value, let's say 10, and the reader reads it. It's the last value so it closes the fifo. Now there's nothing

Re: [Haskell-cafe] writing to a fifo when the reader stops reading

2011-03-14 Thread briand
On Mon, 14 Mar 2011 02:33:13 -0400 Brandon S Allbery KF8NH allber...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/13/11 03:16 , bri...@aracnet.com wrote: ghc: fdWriteBuf: resource vanished (Broken pipe) which make sense, sort of. I write a value, let's say 10,

Re: [Haskell-cafe] writing to a fifo when the reader stops reading

2011-03-14 Thread Antoine Latter
On Mon, Mar 14, 2011 at 9:44 AM, bri...@aracnet.com wrote: On Mon, 14 Mar 2011 02:33:13 -0400 Brandon S Allbery KF8NH allber...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/13/11 03:16 , bri...@aracnet.com wrote: ghc: fdWriteBuf: resource vanished (Broken pipe)

[Haskell-cafe] writing to a fifo when the reader stops reading

2011-03-12 Thread briand
Hi all, here's the code: writer = do threadDelay 10 threadWaitWrite fd fdWrite fd ((show x) ++ \n) writer fd (x+1) pretty simple, it just keeps writing. What happens though is that, eventually, the reader goes away, i.e. closes the fifo. When that happens I get: ghc: