[Haskell-beginners] Named Pipes Et Cetera

Daniel Fischer daniel.is.fischer at web.de
Tue Nov 23 09:43:39 EST 2010


On Tuesday 23 November 2010 15:16:59, Magnus Therning wrote:
> 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

I get the same with 6.12.3 and 7.0.1.

$ uname -a
Linux linux-mkk1 2.6.27.54-0.1-pae #1 SMP 2010-10-19 18:40:07 +0200 i686 
i686 i386 GNU/Linux

>
>
> /M



More information about the Beginners mailing list