summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/src/xmake/process/openv.c2
1 files changed, 1 insertions, 1 deletions
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);