projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mod_posix: Lock pidfile when in use, shut down if we can't write or lock the pidfile
[prosody.git]
/
prosody
diff --git
a/prosody
b/prosody
index dddfaacf61f58500998e22d55f641fe22b521139..37a9d92b30b0424213ce3b418369ebaf99a0764f 100755
(executable)
--- a/
prosody
+++ b/
prosody
@@
-202,6
+202,7
@@
function init_global_state()
log("error", "core."..ports_option.." is not a table");
else
for _, port in ipairs(ports) do
log("error", "core."..ports_option.." is not a table");
else
for _, port in ipairs(ports) do
+ port = tonumber(port);
if type(port) ~= "number" then
log("error", "Non-numeric "..ports_option..": "..tostring(port));
else
if type(port) ~= "number" then
log("error", "Non-numeric "..ports_option..": "..tostring(port));
else