mirror of
https://github.com/bjc/prosody.git
synced 2025-04-06 14:47:37 +03:00
Merge 0.7->trunk
This commit is contained in:
commit
896c6443c5
3 changed files with 10 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue