Make kiwmi:spawn return the pid

This commit is contained in:
buffet 2020-01-19 23:14:48 +00:00
parent c1972bfefc
commit 557a7ff753

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