util/xpcall.lua
author Kim Alvefur <zash@zash.se>
Fri, 01 Mar 2024 19:20:45 +0100
changeset 13454 f36e1e1b84fe
parent 12979 d10957394a3c
permissions -rw-r--r--
net.server_epoll: Log creation of signalfd handles at noise level To aid in tracking down signalfd-related problems

local xpcall = xpcall;

if select(2, xpcall(function (x) return x end, function () end,  "test")) ~= "test" then
	xpcall = require"prosody.util.compat".xpcall;
end

return {
	xpcall = xpcall;
};