Ticket #478 (closed bug: invalid)

Opened 8 years ago

Last modified 5 years ago

Problem with Threading under GHC

Reported by: schachblocki Owned by: nobody
Priority: normal Milestone:
Component: GHCi Version: None
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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.

Change History

Changed 8 years ago by simonmar

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?

Changed 7 years ago by anonymous

  • status changed from assigned to closed
  • resolution changed from None to invalid
  • os set to Unknown
  • architecture set to Unknown

No feedback from submitter after 1 month; closing the bug due to lack of information.

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.