aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_posix.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-05-07 16:17:48 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-05-07 16:17:48 +0500
commitcfb093a9f4e464fba1e56c2e3e340ece4219a411 (patch)
tree356e76e982f915b8a9887af0b7cdadc7cecaa4e2 /plugins/mod_posix.lua
parent5459f25151b4de3d3d51120dbf2a6ee8ebabb088 (diff)
parentc43b31011fc3d488b33945f64c0362666ca96913 (diff)
downloadprosody-cfb093a9f4e464fba1e56c2e3e340ece4219a411.tar.gz
prosody-cfb093a9f4e464fba1e56c2e3e340ece4219a411.zip
Merge 0.6->0.7
Diffstat (limited to 'plugins/mod_posix.lua')
-rw-r--r--plugins/mod_posix.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua
index 5888ae10..c38f7eba 100644
--- a/plugins/mod_posix.lua
+++ b/plugins/mod_posix.lua
@@ -82,6 +82,7 @@ local function write_pidfile()
end
pidfile = module:get_option("pidfile");
if pidfile then
+ local err;
local mode = stat(pidfile) and "r+" or "w+";
pidfile_handle, err = io.open(pidfile, mode);
if not pidfile_handle then