Mercurial > prosody-hg
diff plugins/mod_posix.lua @ 3043:1fadbb2e3ca0
Merge with 0.6
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 17 May 2010 11:56:36 +0100 |
| parents | 692b3c6c5bd2 dec4527a7499 |
| children | 0c7beabfed5b |
line wrap: on
line diff
--- a/plugins/mod_posix.lua Wed May 05 17:21:50 2010 +0100 +++ b/plugins/mod_posix.lua Mon May 17 11:56:36 2010 +0100 @@ -82,6 +82,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
