From 945fa0908fbfed1f83020658e6fd9791bbc569b0 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 28 Dec 2023 14:25:49 +0800 Subject: Update os.lua --- xmake/core/base/os.lua | 6 +++--- 1 file 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 -- cgit v1.3.1