aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2024-03-01 19:22:49 +0100
committerKim Alvefur <zash@zash.se>2024-03-01 19:22:49 +0100
commited0188ce815b61bac484d406371e68e4b2e52843 (patch)
tree1d25b6f0edd470ca67c666755447339faa4af9c1
parent865df3d37344e63e505951dfc6561bfd41ff0c58 (diff)
downloadprosody-ed0188ce815b61bac484d406371e68e4b2e52843.tar.gz
prosody-ed0188ce815b61bac484d406371e68e4b2e52843.zip
net.server: Disable epoll signalfd handling by default until problems resolved
-rw-r--r--net/server.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/server.lua b/net/server.lua
index 942aceb2..45601998 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -87,6 +87,11 @@ else
end
end
+if server_type == "epoll" and os.getenv "PROSODY_EPOLL_SIGNALS" ~= "1" then
+ -- Until we can track down why this only works for me
+ server.hook_signal = nil;
+end
+
-- If server.hook_signal exists, replace signal.signal()
local has_signal, signal = pcall(require, "prosody.util.signal");
if has_signal then