Software /
code /
prosody
Diff
plugins/mod_posix.lua @ 3028:e095d2a98936
Merge 0.6->0.7
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 07 May 2010 16:17:48 +0500 |
parent | 2925:692b3c6c5bd2 |
parent | 3026:dec4527a7499 |
child | 3029:0c7beabfed5b |
line wrap: on
line diff
--- a/plugins/mod_posix.lua Fri May 07 16:13:05 2010 +0500 +++ b/plugins/mod_posix.lua Fri May 07 16:17:48 2010 +0500 @@ -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