aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticon.lua
diff options
context:
space:
mode:
authoronefang2022-10-21 13:53:08 +1000
committeronefang2022-10-21 13:53:08 +1000
commit61179bf107bd4e24fd628b6bf9a503e28330782b (patch)
tree38ece8fe434d0b790ba306d73865a1b74efcc00e /apt-panopticon.lua
parentActually exit when still running. (diff)
downloadapt-panopticon-61179bf107bd4e24fd628b6bf9a503e28330782b.zip
apt-panopticon-61179bf107bd4e24fd628b6bf9a503e28330782b.tar.gz
apt-panopticon-61179bf107bd4e24fd628b6bf9a503e28330782b.tar.bz2
apt-panopticon-61179bf107bd4e24fd628b6bf9a503e28330782b.tar.xz
Yet another attempt to sort out these log file crashes.
Diffstat (limited to 'apt-panopticon.lua')
-rwxr-xr-xapt-panopticon.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index 93eca85..d438889 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -1228,7 +1228,6 @@ else
1228 while 1 <= APT.checkExes("apt-panopticon.lua " .. sendArgs) do os.execute("sleep 5") end 1228 while 1 <= APT.checkExes("apt-panopticon.lua " .. sendArgs) do os.execute("sleep 5") end
1229 1229
1230 local APT_args = APT.args 1230 local APT_args = APT.args
1231 local APT_logFile = APT.logFile
1232 local debians = {} 1231 local debians = {}
1233 local srvs = APT.readCmd('ls -1 results/*.lua') 1232 local srvs = APT.readCmd('ls -1 results/*.lua')
1234 for ii,l in ipairs(srvs) do 1233 for ii,l in ipairs(srvs) do
@@ -1270,6 +1269,7 @@ else
1270 end 1269 end
1271 1270
1272 local combine = function(ip, a) 1271 local combine = function(ip, a)
1272 local APT_logFile = APT.logFile
1273 if not APT.logOpen(hst, ip) then 1273 if not APT.logOpen(hst, ip) then
1274 print('PROBLEM OPENING LOG FILE ' .. hst .. ' ' .. ip) 1274 print('PROBLEM OPENING LOG FILE ' .. hst .. ' ' .. ip)
1275 else 1275 else
@@ -1284,8 +1284,8 @@ else
1284 end 1284 end
1285 APT.logPost() 1285 APT.logPost()
1286 APT.args = APT_args 1286 APT.args = APT_args
1287 APT.logFile = APT_logFile
1288 end 1287 end
1288 APT.logFile = APT_logFile
1289 combine('', baseFiles) 1289 combine('', baseFiles)
1290 for ip, a in pairs(IPfiles) do 1290 for ip, a in pairs(IPfiles) do
1291 if nil == a[1] then 1291 if nil == a[1] then