aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-09 09:24:56 +1000
committeronefang2019-12-09 09:24:56 +1000
commitc62c6fb8d739de756e8ef086cbbbaeb209f5b6a3 (patch)
treee980bcb881bcba8f346b91ee9ce39353e5c62e6f
parentDon't miscount some redirections as Protocol changes. (diff)
downloadapt-panopticon-c62c6fb8d739de756e8ef086cbbbaeb209f5b6a3.zip
apt-panopticon-c62c6fb8d739de756e8ef086cbbbaeb209f5b6a3.tar.gz
apt-panopticon-c62c6fb8d739de756e8ef086cbbbaeb209f5b6a3.tar.bz2
apt-panopticon-c62c6fb8d739de756e8ef086cbbbaeb209f5b6a3.tar.xz
Prevent a lockup.
-rwxr-xr-xapt-panopticon.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index 02d7d9e..37778ac 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -354,7 +354,7 @@ local fork = function(s)
354end 354end
355 355
356local checkExes = function (exe) 356local checkExes = function (exe)
357 local count = io.popen('ps x | grep "' .. exe .. '" | grep -v " grep " | wc -l'):read("*l") 357 local count = io.popen('ps x | grep "' .. exe .. '" | grep -v " grep " | grep -v "flock -n apt-panopticon.lock " | wc -l'):read("*l")
358 D(count .. " " .. exe .. " commands still running.") 358 D(count .. " " .. exe .. " commands still running.")
359 return tonumber(count) 359 return tonumber(count)
360end 360end