X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=util%2Fprosodyctl.lua;h=b24e194dad769d2fc5c9c46416f10670a1d7b0cb;hb=6e79e1d5057bdf86672b624f3c548b53808da69c;hp=ce223459229145163c10840c6f8e9caf31f953e7;hpb=3178b6d0688c9e8f255a459bc1fa267ae50fd38e;p=prosody.git diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua index ce223459..b24e194d 100644 --- a/util/prosodyctl.lua +++ b/util/prosodyctl.lua @@ -1,3 +1,11 @@ +-- Prosody IM +-- Copyright (C) 2008-2009 Matthew Wild +-- Copyright (C) 2008-2009 Waqas Hussain +-- +-- This project is MIT/X11 licensed. Please see the +-- COPYING file in the source package for more information. +-- + local config = require "core.configmanager"; local encodings = require "util.encodings"; @@ -58,7 +66,7 @@ function getpid() local file, err = io.open(pidfile); if not file then - return false, "pidfile-read-failed", ret; + return false, "pidfile-read-failed", err; end local pid = tonumber(file:read("*a"));