Comparison

util/prosodyctl.lua @ 1515:9991329e6b67

util.prosodyctl: Fix undefined global access
author Matthew Wild <mwild1@gmail.com>
date Fri, 10 Jul 2009 02:16:52 +0100
parent 1130:442c87de8e2d
child 1522:569d58d21612
comparison
equal deleted inserted replaced
1514:0c706c3d2e30 1515:9991329e6b67
56 return false, "no-pidfile"; 56 return false, "no-pidfile";
57 end 57 end
58 58
59 local file, err = io.open(pidfile); 59 local file, err = io.open(pidfile);
60 if not file then 60 if not file then
61 return false, "pidfile-read-failed", ret; 61 return false, "pidfile-read-failed", err;
62 end 62 end
63 63
64 local pid = tonumber(file:read("*a")); 64 local pid = tonumber(file:read("*a"));
65 file:close(); 65 file:close();
66 66