On 2008 Aug 16, at 12:22, Changying Li wrote:
test.hs: /tmp/b: hGetChar: end of file

test.hs: /tmp/c: hGetChar: end of file


I think the thread will be blocked when /tmp/b has nothing.
but it get EOF, why ?


Because FIFOs are odd. Open them for read/write to avoid unexpected EOFs and unexpected blocking.

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED]
system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED]
electrical and computer engineering, carnegie mellon university    KF8NH


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to