[Haskell-cafe] system in forkIO
Marco Túlio Gontijo e Silva
marcot at riseup.net
Sun Sep 14 15:07:31 EDT 2008
Em Dom, 2008-09-14 às 11:08 -0700, Judah Jacobson escreveu:
> 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
Thanks, I got it to work running
threadWaitRead stdInput
before getChar. Only changing forkIO for forkOS gave me the same
result.
Greetings.
--
marcot
Página: http://marcotmarcot.iaaeee.org/
Blog: http://marcotmarcot.blogspot.com/
Correio: marcot at riseup.net
XMPP: marcot at jabber.org
IRC: marcot at irc.freenode.net
Telefone: 25151920
Celular: 98116720
Endereço:
Rua Turfa, 639/701
Prado 30410-370
Belo Horizonte/MG Brasil
More information about the Haskell-Cafe
mailing list