mirror of
https://github.com/adulau/aha.git
synced 2024-12-26 10:46:11 +00:00
Fixed a wrong assumption: A clone of sshd is not necessarly a related to a user
This commit is contained in:
parent
54d3a0d153
commit
51da827445
1 changed files with 5 additions and 0 deletions
|
@ -226,6 +226,11 @@ class ProcessTrees:
|
|||
ts = time.strftime("%Y-%m-%d %H:%M:%S")
|
||||
f.write("*** UserList created on %s ***\n"%(str(ts)))
|
||||
for pid in self.userList.keys():
|
||||
#Each sshd clone is not necessarly related to a user
|
||||
if (len(self.get_children(pid)) == 0):
|
||||
#Discard empty subtrees
|
||||
continue
|
||||
|
||||
f.write("** user root process %d **\n"%pid)
|
||||
#See if some annotation is found for this pid
|
||||
if self.aplist.has_key(pid):
|
||||
|
|
Loading…
Reference in a new issue