summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-12 22:49:37 +0800
committerruki <[email protected]>2020-05-12 10:57:43 +0800
commitf1775e8c526d520d22c65337c4eead5014deb8c5 (patch)
tree2201b2eab744bda4e81b6d21a9270aaec24a2ce1 /core/src
parent3d9eda6bf206d4bbcccc840c1f3ba477aefcbfc5 (diff)
fix process.openv with detach
Diffstat (limited to 'core/src')
-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);