Comparison

plugins/mod_posix.lua @ 8010:49feb0da29e1

util.pposix: Add function for atomically appending data to a file
author Kim Alvefur <zash@zash.se>
date Wed, 01 Mar 2017 01:33:00 +0100
parent 7992:51396e0836cf
child 8012:e898c8fda986
comparison
equal deleted inserted replaced
8005:b472bccf8023 8010:49feb0da29e1
5 -- This project is MIT/X11 licensed. Please see the 5 -- This project is MIT/X11 licensed. Please see the
6 -- COPYING file in the source package for more information. 6 -- COPYING file in the source package for more information.
7 -- 7 --
8 8
9 9
10 local want_pposix_version = "0.3.6"; 10 local want_pposix_version = "0.3.7";
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. Perhaps you need to recompile?", tostring(pposix._VERSION), want_pposix_version);
15 end 15 end