Make kiwmi:spawn return the pid
This commit is contained in:
parent
c1972bfefc
commit
557a7ff753
1 changed files with 3 additions and 1 deletions
|
@ -93,7 +93,9 @@ l_kiwmi_server_spawn(lua_State *L)
|
||||||
_exit(EXIT_FAILURE);
|
_exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
lua_pushinteger(L, pid);
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Reference in a new issue