Comparison

plugins/mod_posix.lua @ 8166:bbedf564b9f9

mod_posix: Split long line [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 13 Jun 2017 20:10:40 +0200
parent 8116:76ac8b617402
child 8167:39188851811c
comparison
equal deleted inserted replaced
8164:a395957f3bf2 8166:bbedf564b9f9
9 9
10 local want_pposix_version = "0.4.0"; 10 local want_pposix_version = "0.4.0";
11 11
12 local pposix = assert(require "util.pposix"); 12 local pposix = assert(require "util.pposix");
13 if pposix._VERSION ~= want_pposix_version then 13 if pposix._VERSION ~= want_pposix_version then
14 module:log("warn", "Unknown version (%s) of binary pposix module, expected %s. Perhaps you need to recompile?", tostring(pposix._VERSION), want_pposix_version); 14 module:log("warn", "Unknown version (%s) of binary pposix module, expected %s."
15 .. "Perhaps you need to recompile?", tostring(pposix._VERSION), want_pposix_version);
15 end 16 end
16 17
17 local have_signal, signal = pcall(require, "util.signal"); 18 local have_signal, signal = pcall(require, "util.signal");
18 if not have_signal then 19 if not have_signal then
19 module:log("warn", "Couldn't load signal library, won't respond to SIGTERM"); 20 module:log("warn", "Couldn't load signal library, won't respond to SIGTERM");