util.startup: Fix exiting on pidfile trouble
prosody.shutdown() relies on prosody.main_thread, which has not been set
yet at this point.
Doing a clean shutdown might actually be harmful in case it tears down
things set up by the conflicting Prosody, such as the very pidfile we
were looking at.
Thanks again SigmaTel71 for noticing
if not math.type then
local function math_type(t)
if type(t) == "number" then
if t % 1 == 0 and t ~= t + 1 and t ~= t - 1 then
return "integer"
else
return "float"
end
end
end
_G.math.type = math_type
end