changeset 4222:02292b892fce

mod_debug_traceback: Fix global lookup warning on 0.11.x
author Matthew Wild <mwild1@gmail.com>
date Mon, 19 Oct 2020 15:47:25 +0100
parents e5998f53f4ff
children 4ec755c13e9b
files mod_debug_traceback/mod_debug_traceback.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_debug_traceback/mod_debug_traceback.lua	Mon Oct 19 16:31:01 2020 +0200
+++ b/mod_debug_traceback/mod_debug_traceback.lua	Mon Oct 19 15:47:25 2020 +0100
@@ -47,7 +47,7 @@
 end
 
 local mod_posix = module:depends("posix");
-if mod_posix.features and mod_posix.features.signal_events then
+if rawget(mod_posix, "features") and mod_posix.features.signal_events then
 	module:hook("signal/"..signal_name, dump_traceback);
 else
 	require"util.signal".signal(signal_name, dump_traceback);