diff options
| author | ruki <[email protected]> | 2022-04-16 20:46:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-04-16 20:46:57 +0800 |
| commit | 5ea6ff34f63326c6769ee249b1b30bb8553e7c52 (patch) | |
| tree | d6f14bd0374d18450c33ebd18b0970480f7890fa /xmake/core/base/os.lua | |
| parent | c50be9dc24299bdd05fc024dd726b5199a2f6f7d (diff) | |
fix os.execv
Diffstat (limited to 'xmake/core/base/os.lua')
| -rw-r--r-- | xmake/core/base/os.lua | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index 2f44afa38..870a98097 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -773,9 +773,13 @@ function os.execv(program, argv, opt) end -- wait process - local waitok, status = proc:wait(-1) - if waitok > 0 then - ok = status + if not opt.detach then + local waitok, status = proc:wait(-1) + if waitok > 0 then + ok = status + end + else + ok = 0 end -- close process |
