@@ -139,15 +139,12 @@ onVmRun :: RemoteTable -> String -> String -> IO ()
139onVmRun rtable host port = do
139onVmRun rtable host port = do
140 hSetBinaryMode stdin True
140 hSetBinaryMode stdin True
141 proc <- BSL.getContents :: IO BSL.ByteString
141 proc <- BSL.getContents :: IO BSL.ByteString
142− putStrLn $ "Got closure encoding of length " ++ show (BSL.length proc)
143 mTransport <- createTransport host port defaultTCPParameters
142 mTransport <- createTransport host port defaultTCPParameters
144 case mTransport of
143 case mTransport of
145 Left err -> throwIO err
144 Left err -> throwIO err
146 Right transport -> do
145 Right transport -> do
147 node <- newLocalNode transport rtable
146 node <- newLocalNode transport rtable
148− runProcess node $ do
147+ runProcess node $ join . unClosure . decode $ proc
149− liftIO $ putStrLn "Starting remote node"
150− catch (join . unClosure . decode $ proc) (\e -> liftIO $ print (e :: SomeException))
152--------------------------------------------------------------------------------
149--------------------------------------------------------------------------------
153-- Command line options --
150-- Command line options --