Software /
code /
prosody
Diff
plugins/mod_posix.lua @ 6357:ccae56e34956
mod_posix: Make sure that 'pidfile' is a string
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 26 Aug 2014 12:02:41 +0200 |
parent | 5452:edf3db386a19 |
child | 6367:769a3577dd85 |
line wrap: on
line diff
--- 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+";