Bugs item #1353257, was opened at 2005-11-10 16:12
Message generated for change (Comment added) made by simonmar
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1353257&group_id=8032
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: GHCi
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Marco Block (schachblocki)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem with Threading under GHC
Initial Comment:
hi ghc-friends,
i try the following code, but it don't work:
import System.Process
import Control.Concurrent
import System.IO
p = threadDelay 10000000
main3 = do putStrLn "test"
hClose stdin
(inp, out, err, pid) <-
runInteractiveProcess "Test.exe" [] Nothing Nothing
p
forkIO (putStrLn =<<
hGetContents out)
forkIO (putStrLn =<<
hGetContents err)
p
putStrLn "inp"
forkIO (hPutStrLn inp "in" >>
hClose
inp)
p
forkIO (putStrLn =<<
hGetContents out)
forkIO (putStrLn =<<
hGetContents err)
putStrLn "out"
threadDelay 1000000
forkIO (hPutStrLn inp "quit" >>
hClose
inp)
hShow out
return ()
thanks for helping.
----------------------------------------------------------------------
>Comment By: Simon Marlow (simonmar)
Date: 2005-11-10 16:59
Message:
Logged In: YES
user_id=48280
Please could you give more information: we don't know what
"Test.exe" is. What do you expect to happen, and what in
fact does happen? What behaviour are you claiming is at fault?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1353257&group_id=8032
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs