[Haskell-cafe] system in forkIO

Marco Túlio Gontijo e Silva marcot at riseup.net
Sun Sep 14 17:50:06 EDT 2008


Em Dom, 2008-09-14 às 16:07 -0300, Marco Túlio Gontijo e Silva escreveu:
> Thanks, I got it to work running 
> 
> threadWaitRead stdInput
> 
> before getChar.

Now I've got another problem:

> import Control.Concurrent
> import System.IO
> import System.Process

> main :: IO ()
> main
>   = do
>     process <- runCommand "wget
http://ftp.br.debian.org/debian/pool/main/g/ghc6/ghc6_6.8.2-6_amd64.deb"
>     forkIO
>       $ putStrLn "fork"
>       >> getChar >>= putChar
>       >> terminateProcess process
>     waitForProcess process
>     return ()

Not even fork is shown.  Any hints?

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