diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-05-07 16:04:45 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-05-07 16:04:45 +0500 |
commit | 4e7390dbf9737743951100238a77edcf3f22f1e1 (patch) | |
tree | 1b03ac7d7cce203cd39c1f9149bea67addeda9ae /plugins/mod_posix.lua | |
parent | 63338056fd76dff3eacd77d9d9fcee043fe99796 (diff) | |
download | prosody-4e7390dbf9737743951100238a77edcf3f22f1e1.tar.gz prosody-4e7390dbf9737743951100238a77edcf3f22f1e1.zip |
mod_posix: Fixed a global access.
Diffstat (limited to 'plugins/mod_posix.lua')
-rw-r--r-- | plugins/mod_posix.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua index a5fd51ef..9155289d 100644 --- a/plugins/mod_posix.lua +++ b/plugins/mod_posix.lua @@ -79,6 +79,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 |