[Haskell-beginners] Named Pipes Et Cetera

Magnus Therning magnus at therning.org
Tue Nov 23 09:16:59 EST 2010


On Tue, Nov 23, 2010 at 14:09, Patrick LeBoutillier
<patrick.leboutillier at gmail.com> wrote:
> Matthew,
>
> Does it return immediately when you start it or only when you try to
> write to the pipe with some client?
>
> Here's what I get on my Linux box:
>
> $ rm /tmp/dld.fifo && ./pipe &
> [1] 8603
> $ echo -e "1\n2\n3" > /tmp/dld.fifo
> 1
> 2
> 3
> pipe: /tmp/dld.fifo: hGetLine: end of file

Would you run 'uname -a' and 'ghc --version'?

I don't see that behaviour here

% uname -a
Linux bryma 2.6.35-ARCH #1 SMP PREEMPT Sat Oct 30 21:22:26 CEST 2010
x86_64 Intel(R) Core(TM)2 Quad CPU Q9450 @ 2.66GHz GenuineIntel
GNU/Linux
% ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.12.3

% rm /tmp/dld.fifo && ./pipe&
[1] 30762
% pipe: /tmp/dld.fifo: hGetLine: end of file

[1]  + exit 1     ./pipe


/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4
email: magnus at therning.org   jabber: magnus at therning.org
twitter: magthe               http://therning.org/magnus


More information about the Beginners mailing list