equal
deleted
inserted
replaced
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) |