From afeb1f6f0292fa040718acca4460f049bd2a9a80 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 12 Oct 2018 03:21:11 +0200 Subject: net.server_epoll: Ignore ENOENT when deregitering socket It should not really happen --- util-src/poll.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util-src/poll.c') diff --git a/util-src/poll.c b/util-src/poll.c index 58f29041..e5b5f70c 100644 --- a/util-src/poll.c +++ b/util-src/poll.c @@ -452,7 +452,7 @@ int luaopen_util_poll(lua_State *L) { #endif } - lua_createtable(L, 0, 2); + lua_createtable(L, 0, 3); { lua_pushcfunction(L, Lnew); lua_setfield(L, -2, "new"); @@ -461,6 +461,7 @@ int luaopen_util_poll(lua_State *L) { lua_setfield(L, -2, #named_error); push_errno(EEXIST); + push_errno(ENOENT); } return 1; -- cgit v1.2.3