Mercurial > prosody-modules
diff mod_log_ringbuffer/mod_log_ringbuffer.lua @ 5852:133b23758cf6
mod_log_ringbuffer: Hook POSIX signals via event only
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 02 Mar 2024 15:11:20 +0100 |
parents | df2ccb42a241 |
children | 97c9b76867ca |
line wrap: on
line diff
--- a/mod_log_ringbuffer/mod_log_ringbuffer.lua Sat Mar 02 14:47:09 2024 +0100 +++ b/mod_log_ringbuffer/mod_log_ringbuffer.lua Sat Mar 02 15:11:20 2024 +0100 @@ -106,7 +106,7 @@ end if sink_config.signal then - require "util.signal".signal(sink_config.signal, handler); + module:hook_global("signal/"..sink_config.signal, handler); elseif sink_config.event then module:hook_global(sink_config.event, handler); end