mod_posix: Make sure that 'pidfile' is a string
authorKim Alvefur <zash@zash.se>
Tue, 26 Aug 2014 10:02:41 +0000 (12:02 +0200)
committerKim Alvefur <zash@zash.se>
Tue, 26 Aug 2014 10:02:41 +0000 (12:02 +0200)
plugins/mod_posix.lua

index 28fd7f382e6aa08fb5e6de8c57f33942b70c6156..b289fa44b29adf5bad14812f63e48514f5af7bd7 100644 (file)
@@ -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+";