diff options
author | onefang | 2019-12-09 09:24:56 +1000 |
---|---|---|
committer | onefang | 2019-12-09 09:24:56 +1000 |
commit | c62c6fb8d739de756e8ef086cbbbaeb209f5b6a3 (patch) | |
tree | e980bcb881bcba8f346b91ee9ce39353e5c62e6f | |
parent | Don't miscount some redirections as Protocol changes. (diff) | |
download | apt-panopticon-c62c6fb8d739de756e8ef086cbbbaeb209f5b6a3.zip apt-panopticon-c62c6fb8d739de756e8ef086cbbbaeb209f5b6a3.tar.gz apt-panopticon-c62c6fb8d739de756e8ef086cbbbaeb209f5b6a3.tar.bz2 apt-panopticon-c62c6fb8d739de756e8ef086cbbbaeb209f5b6a3.tar.xz |
Prevent a lockup.
-rwxr-xr-x | apt-panopticon.lua | 2 |
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) | |||
354 | end | 354 | end |
355 | 355 | ||
356 | local checkExes = function (exe) | 356 | local 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) |
360 | end | 360 | end |