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,
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
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
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