Software /
code /
prosody-modules
Changeset
5876: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 | 5875:dde9d21a599f |
children | 5877:97c9b76867ca |
files | mod_log_ringbuffer/README.markdown mod_log_ringbuffer/mod_log_ringbuffer.lua |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_log_ringbuffer/README.markdown Sat Mar 02 14:47:09 2024 +0100 +++ b/mod_log_ringbuffer/README.markdown Sat Mar 02 15:11:20 2024 +0100 @@ -120,4 +120,4 @@ # Compatibility -0.11 and later. +0.12 and later.
--- 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