diff mod_debug_traceback/mod_debug_traceback.lua @ 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 983565f42063
children 0358fcf14cd6
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);