|
runInteractiveProcess, confused: msg#00075lang.haskell.glasgow.bugs
Hi, When I run the following line in ghci: Prelude System.Process Control.Concurrent System.IO> do { (inp, out, err, ph) <- runInteractiveProcess "cat" [] Nothing Nothing; forkIO (do hPutStr inp "this\nis\na\ntest\n"; hClose inp); waitForProcess ph } ... it doesn't terminate. I'm following the example in the System.Process documentation. But I would think that since I close 'inp', "cat" would terminate. Also, I don't see the expected output. Frederik -- http://ofb.net/~frederik/
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: runghc, ".hs" suffix, Frederik Eaton |
|---|---|
| Next by Date: | Feature request: Windows ZIP Distribution, Brian Smith |
| Previous by Thread: | Feature request: Distribute Windows version as a ZIP file, Brian Smith |
| Next by Thread: | RE: runInteractiveProcess, confused, Simon Marlow |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |