Comparison

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
comparison
equal deleted inserted replaced
13450:f36e1e1b84fe 13451:4a9a69659727
85 return server_type; 85 return server_type;
86 end 86 end
87 end 87 end
88 end 88 end
89 89
90 if server_type == "epoll" and os.getenv "PROSODY_EPOLL_SIGNALS" ~= "1" then
91 -- Until we can track down why this only works for me
92 server.hook_signal = nil;
93 end
94
90 -- If server.hook_signal exists, replace signal.signal() 95 -- If server.hook_signal exists, replace signal.signal()
91 local has_signal, signal = pcall(require, "prosody.util.signal"); 96 local has_signal, signal = pcall(require, "prosody.util.signal");
92 if has_signal then 97 if has_signal then
93 if server.hook_signal then 98 if server.hook_signal then
94 function signal.signal(signal_id, handler) 99 function signal.signal(signal_id, handler)