Make kiwmi:spawn return the pid

This commit is contained in:
buffet 2020-01-19 23:14:48 +00:00
parent 06efda3a03
commit 4c72a91afe

View file

@ -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