aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-12 03:21:11 +0200
committerKim Alvefur <zash@zash.se>2018-10-12 03:21:11 +0200
commit906bc714b636f475caf7960922ba75c75a0395e7 (patch)
treeb66b4c6be21c25064428da381dc42381fbee012c /util-src
parent56c2772487be14a1dde2d2da7929725d8035f5fb (diff)
downloadprosody-906bc714b636f475caf7960922ba75c75a0395e7.tar.gz
prosody-906bc714b636f475caf7960922ba75c75a0395e7.zip
net.server_epoll: Ignore ENOENT when deregitering socket
It should not really happen
Diffstat (limited to 'util-src')
-rw-r--r--util-src/poll.c3
1 files changed, 2 insertions, 1 deletions
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;