mod_posix: Make sure that 'pidfile' is a string
authorKim Alvefur <zash@zash.se>
Tue, 26 Aug 2014 12:02:41 +0200
changeset 6357 ccae56e34956
parent 6356 fb1535328ac7
child 6358 55fda5deb5d5
mod_posix: Make sure that 'pidfile' is a string
plugins/mod_posix.lua
--- a/plugins/mod_posix.lua	Tue Aug 26 12:00:51 2014 +0200
+++ b/plugins/mod_posix.lua	Tue Aug 26 12:02:41 2014 +0200
@@ -80,7 +80,7 @@
 	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+";