Software /
code /
prosody
Comparison
net/server.lua @ 13453:0b48cf880e79
net.server: Restore epoll signalfd handling
Reverts 4a9a69659727
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 02 Mar 2024 13:40:37 +0100 |
parent | 13451:4a9a69659727 |
comparison
equal
deleted
inserted
replaced
13452:69faf3552d52 | 13453:0b48cf880e79 |
---|---|
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 | |
95 -- If server.hook_signal exists, replace signal.signal() | 90 -- If server.hook_signal exists, replace signal.signal() |
96 local has_signal, signal = pcall(require, "prosody.util.signal"); | 91 local has_signal, signal = pcall(require, "prosody.util.signal"); |
97 if has_signal then | 92 if has_signal then |
98 if server.hook_signal then | 93 if server.hook_signal then |
99 function signal.signal(signal_id, handler) | 94 function signal.signal(signal_id, handler) |