util.prosodyctl: Report Prosody as not running if the pidfile isn't locked

mod_posix: Lock pidfile when in use, shut down if we can't write or lock the pidfile

util.datamanager: Use pposix.mkdir if available

util.pposix: Add mkdir(path)

prosodyctl: Move definition of prosody singleton to prior to loading datamanager, and add platform

util.pposix: Replace the unwieldy module table generation with luaL_register() call - side effect - it now sets the pposix global to the module table

mod_posix: Set umask to 'umask' from the config, or 027

prosodyctl: Set umask to protect data files, bump pposix dep to 0.3.2

util.pposix: Add pposix.umask(), bump version to 0.3.2 (and do the same in mod_posix)

util.pposix: Fix return type of lc_abort to shush compiler warning

(0) -1000 -300 -100 -10 +10 +100 +300 +1000 tip

mercurial