Software /
code /
prosody-modules
Comparison
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 |
parent | 4217:983565f42063 |
child | 5874:0358fcf14cd6 |
comparison
equal
deleted
inserted
replaced
4221:e5998f53f4ff | 4222:02292b892fce |
---|---|
45 f:close(); | 45 f:close(); |
46 count = count + 1; | 46 count = count + 1; |
47 end | 47 end |
48 | 48 |
49 local mod_posix = module:depends("posix"); | 49 local mod_posix = module:depends("posix"); |
50 if mod_posix.features and mod_posix.features.signal_events then | 50 if rawget(mod_posix, "features") and mod_posix.features.signal_events then |
51 module:hook("signal/"..signal_name, dump_traceback); | 51 module:hook("signal/"..signal_name, dump_traceback); |
52 else | 52 else |
53 require"util.signal".signal(signal_name, dump_traceback); | 53 require"util.signal".signal(signal_name, dump_traceback); |
54 end | 54 end |