summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-12-28 14:25:49 +0800
committerGitHub <[email protected]>2023-12-28 14:25:49 +0800
commit945fa0908fbfed1f83020658e6fd9791bbc569b0 (patch)
tree3e6a215fcd731418dde2a1a13f3175ed9883ebb9
parent2a60ad80ea8c367ff111a281252cc202d2938af6 (diff)
Update os.lua
-rw-r--r--xmake/core/base/os.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index aca76db61..0cc3b4361 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -876,11 +876,11 @@ function os.execv(program, argv, opt)
if waitok > 0 then
ok = status
elseif waitok == 0 and opt.timeout then
- print("kill .. ")
proc:kill()
- print("kill end")
waitok, status = proc:wait(-1)
- print("waitok", waitok, status)
+ if waitok > 0 then
+ ok = status
+ end
errors = "wait process timeout"
end
else