From f1775e8c526d520d22c65337c4eead5014deb8c5 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 12 May 2020 22:49:37 +0800 Subject: fix process.openv with detach --- core/src/xmake/process/openv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/xmake/process/openv.c b/core/src/xmake/process/openv.c index 2eeb35491..4ec2399fc 100644 --- a/core/src/xmake/process/openv.c +++ b/core/src/xmake/process/openv.c @@ -106,7 +106,7 @@ tb_int_t xm_process_openv(lua_State* lua) { // is detached? lua_pushstring(lua, "detach"); - lua_gettable(lua, 2); + lua_gettable(lua, 3); if (lua_toboolean(lua, -1)) attr.flags |= TB_PROCESS_FLAG_DETACH; lua_pop(lua, 1); -- cgit v1.3.1