From fde97f9d42da143502254cc6cad446c020eba427 Mon Sep 17 00:00:00 2001 From: Bart Trojanowski Date: Sat, 22 Nov 2008 19:39:47 -0500 Subject: [PATCH] fix eventloop:add_exec() to return the file descriptor as advertised --- luaeventloop/lel_instance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luaeventloop/lel_instance.c b/luaeventloop/lel_instance.c index ab06ea8..a307260 100644 --- a/luaeventloop/lel_instance.c +++ b/luaeventloop/lel_instance.c @@ -182,7 +182,7 @@ int l_eventloop_add_exec (lua_State *L) lua_pushvalue (L, 3); // [-1] = the function (3rd arg) lua_settable (L, -3); // eventloop[fd] = function - lua_pushinteger (L, pid); + lua_pushinteger (L, prog->fd); return 1; } -- 2.11.4.GIT