diff options
-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 |