Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
changelog_begin
changelog_end
  • Loading branch information
cocreature committed Apr 28, 2020
1 parent 2cf2762 commit f57ba5d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bazel_tools/client_server/runner/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@ import Data.List.Split (splitOn)

main :: IO ()
main = do
putStrLn "hi"
[clientExe, clientArgs, serverExe, serverArgs, _runnerArgs] <- getArgs
putStrLn "ho"
withTempFile $ \tempFile -> do
let splitArgs = filter (/= "") . splitOn " "
let serverProc = proc serverExe $ ["--port-file", tempFile] <> splitArgs serverArgs
print clientExe
print serverExe
withCreateProcess serverProc $ \_stdin _stdout _stderr _ph -> do
withCreateProcess serverProc $ \_stdin _stdout _stderr _ph -> do
port <- readPortFile maxRetries tempFile
callProcess clientExe (["--target-port", show port] <> splitArgs clientArgs)

0 comments on commit f57ba5d

Please sign in to comment.