Community Modules


changeset 133b23758cf6

mod_log_ringbuffer: Hook POSIX signals via event only

author
Kim Alvefur
date
parents
dde9d21a599f
children
97c9b76867ca
topic
files

2 files changed, 2 insertions(+), 2 deletions(-)

↓ Download patch

--- 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