plugins/mod_posix.lua

changeset 3026
dec4527a7499
parent 2923
b7049746bd29
child 3028
e095d2a98936
--- 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

mercurial