[Haskell-cafe] system in forkIO

Judah Jacobson judah.jacobson at gmail.com
Sun Sep 14 14:08:12 EDT 2008


On Sun, Sep 14, 2008 at 10:24 AM, Marco Túlio Gontijo e Silva
<marcot at riseup.net> wrote:
<
> 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


More information about the Haskell-Cafe mailing list