
16 Aug
2008
16 Aug
'08
12:57 p.m.
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] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH