# HG changeset patch
# User Waqas Hussain <waqas20@gmail.com>
# Date 1273230285 -18000
# Node ID dec4527a74993b7d332d035d144e2238bc03604a
# Parent  d7c80d23ed2103607bcb5179b2daf3d153593421
mod_posix: Fixed a global access.

diff -r d7c80d23ed21 -r dec4527a7499 plugins/mod_posix.lua
--- 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