
14 Sep
2008
14 Sep
'08
6:08 p.m.
On Sun, Sep 14, 2008 at 10:24 AM, Marco TĂșlio Gontijo e Silva
When I run this code, I get
fork
and the result of ls only after I press a key. Does getChar blocks the other threads?
I think this behavior is caused by (or at least related to) the following GHC bug: http://hackage.haskell.org/trac/ghc/ticket/2363 That bug has been fixed for the 6.10 release; my testing indicated that your program behaves correctly in that version. See the above bug report for some suggestions on how to work around the 6.8 getChar blocking. Hope that helps, -Judah