aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_posix.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-05-07 16:21:04 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-05-07 16:21:04 +0500
commit896c6443c55ba89cc4a22063ab91c8f105a96149 (patch)
treedb9f4c42c3f51af2e4552ddb5de606d5cce19f35 /plugins/mod_posix.lua
parent2f333716e6e6dcb12648ed8c8683d7189ead4efe (diff)
parentcfb093a9f4e464fba1e56c2e3e340ece4219a411 (diff)
downloadprosody-896c6443c55ba89cc4a22063ab91c8f105a96149.tar.gz
prosody-896c6443c55ba89cc4a22063ab91c8f105a96149.zip
Merge 0.7->trunk
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 5e9d2544..52b1e0e6 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