From 557a7ff753e202917a96729619053376a1d3a481 Mon Sep 17 00:00:00 2001 From: Charlotte Meyer 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 f139049..b61f388 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