From 3f0c48dcfb366e61b9c8d2c1c0d6f8a565039061 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 25 Feb 2023 22:26:24 +0800 Subject: improve to read stdin #3422 --- xmake/modules/private/service/remote_build/client.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xmake/modules/private/service/remote_build/client.lua b/xmake/modules/private/service/remote_build/client.lua index 53fc6b1e3..e17ee483d 100644 --- a/xmake/modules/private/service/remote_build/client.lua +++ b/xmake/modules/private/service/remote_build/client.lua @@ -568,6 +568,10 @@ function remote_build_client:_read_stdin(stream, opt) if not ok then break end + else + -- we need to avoid always reading stdin + -- https://github.com/xmake-io/xmake/issues/3422 + os.sleep(1) end else os.sleep(500) -- cgit v1.3.1