aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-08-26 12:02:41 +0200
committerKim Alvefur <zash@zash.se>2014-08-26 12:02:41 +0200
commitee930ccda4fc6ab25a3d9a5c953cb9acc465023c (patch)
treee97f972b954c7bbd172c2f3a9dc66d341d20f323
parent7d66a70477c2fa156263e10c5fa571e172767572 (diff)
downloadprosody-ee930ccda4fc6ab25a3d9a5c953cb9acc465023c.tar.gz
prosody-ee930ccda4fc6ab25a3d9a5c953cb9acc465023c.zip
mod_posix: Make sure that 'pidfile' is a string
-rw-r--r--plugins/mod_posix.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua
index 28fd7f38..b289fa44 100644
--- a/plugins/mod_posix.lua
+++ b/plugins/mod_posix.lua
@@ -80,7 +80,7 @@ local function write_pidfile()
if pidfile_handle then
remove_pidfile();
end
- pidfile = module:get_option("pidfile");
+ pidfile = module:get_option_string("pidfile");
if pidfile then
local err;
local mode = stat(pidfile) and "r+" or "w+";