Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Skip obsolete pids entries
Browse files Browse the repository at this point in the history
Signed-off-by: Timofey Titovets <[email protected]>
  • Loading branch information
nefelim4ag committed Apr 22, 2018
1 parent 8899ec0 commit 01eec5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ananicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,8 @@ def process_pid(self, proc, pid):
def processing_rules(self):
proc = self.proc
for pid in proc:
if not os.path.exists("/proc/" + str(pid)):
continue
self.process_pid(proc, pid)

def run(self):
Expand Down

0 comments on commit 01eec5e

Please sign in to comment.