From 4c72a91afef49abdef3892f4e47130db93ca2f7c Mon Sep 17 00:00:00 2001 From: buffet Date: Sun, 19 Jan 2020 23:14:48 +0000 Subject: [PATCH] Make kiwmi:spawn return the pid --- kiwmi/luak/kiwmi_server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kiwmi/luak/kiwmi_server.c b/kiwmi/luak/kiwmi_server.c index b1305df..4d6a765 100644 --- a/kiwmi/luak/kiwmi_server.c +++ b/kiwmi/luak/kiwmi_server.c @@ -93,7 +93,9 @@ l_kiwmi_server_spawn(lua_State *L) _exit(EXIT_FAILURE); } - return 0; + lua_pushinteger(L, pid); + + return 1; } static int