Diff

net/server.lua @ 13451:4a9a69659727

net.server: Disable epoll signalfd handling by default until problems resolved
author Kim Alvefur <zash@zash.se>
date Fri, 01 Mar 2024 19:22:49 +0100
parent 13166:e6e76f64ebb6
child 13453:0b48cf880e79
line wrap: on
line diff
--- a/net/server.lua	Fri Mar 01 19:20:45 2024 +0100
+++ b/net/server.lua	Fri Mar 01 19:22:49 2024 +0100
@@ -87,6 +87,11 @@
 	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