mod_posix: Make sure that 'pidfile' is a string

remotes/origin/0.11
Kim Alvefur 12 years ago
parent 6af9beaccf
commit d431f7e1ec
  1. 2
      plugins/mod_posix.lua

@ -80,7 +80,7 @@ local function write_pidfile()
if pidfile_handle then
remove_pidfile();
end
pidfile = module:get_option("pidfile");
pidfile = module:get_option_string("pidfile");
if pidfile then
local err;
local mode = stat(pidfile) and "r+" or "w+";

Loading…
Cancel
Save