Software / code / prosody
Changeset
3026:dec4527a7499
mod_posix: Fixed a global access.
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Fri, 07 May 2010 16:04:45 +0500 |
| parents | 3018:d7c80d23ed21 |
| children | 3027:b5beb7b15ac4 |
| files | plugins/mod_posix.lua |
| diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_posix.lua Thu May 06 15:52:47 2010 +0500 +++ b/plugins/mod_posix.lua Fri May 07 16:04:45 2010 +0500 @@ -79,6 +79,7 @@ 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