summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-02-25 22:26:24 +0800
committerruki <[email protected]>2023-02-25 22:26:24 +0800
commit3f0c48dcfb366e61b9c8d2c1c0d6f8a565039061 (patch)
tree2998a46e4d31ed4bdd891d08c896ad844ca3b7c0
parent664f204b258e73ae01a697fecfdcedf71acf2edb (diff)
improve to read stdin #3422
-rw-r--r--xmake/modules/private/service/remote_build/client.lua4
1 files changed, 4 insertions, 0 deletions
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)