Re: named pipes

2012-01-20 Thread Albert Y. C. Lai
On 12-01-19 02:16 PM, Serge D. Mechveliani wrote: -- Main.hs - hPutStr h1 str hFlush h1 This fails to send a newline. --- fifo2.c - if (fgets(str, BOUND,

Re: named pipes

2012-01-19 Thread Serge D. Mechveliani
To my Dear GHC team, I am testing the IO operations of GHC with the Unix named pipes [..] Albert Y. C. Lai writes on 19 Jan 2012 Main.hs does not open fromA at all. (fromA_IO is dead code.) This causes fifo2.c to be hung whenever it opens fromA. From the man page of mkfifo(3) on Linux

named pipes

2012-01-18 Thread Serge D. Mechveliani
Dear GHC team, I am testing the IO operations of GHC with the Unix named pipes (in ghc-7.01 under Debian Linux). In the below example, the pipe pair are created bymkfifo toA mkfifo fromA, `main' in Main.hs opens toAfor writing

Re: named pipes

2012-01-18 Thread Albert Y. C. Lai
Main.hs does not open fromA at all. (fromA_IO is dead code.) This causes fifo2.c to be hung whenever it opens fromA. From the man page of mkfifo(3) on Linux: Opening a FIFO for reading normally blocks until some other process opens the same FIFO for writing, and vice versa. See fifo(7) for