Ticket #66 (new defect)

Opened 3 years ago

Last modified 3 years ago

Process reference by name issue: multiple procs with same name

Reported by: mtaylor Owned by:
Priority: major Milestone:
Component: Data Collection Version: eddie-0.35
Keywords: Cc:

Description

The procList class stores a nameHash and a datahash. nameHash is indexed by the process' name, and datahash is indexed by the pid.

getitem() uses the nameHash.

If there are more than one processes with the same name (such as multiple "bash" sessions), then only the last one in the "ps" list is accessable.

Perhaps getitem() should return simple array. This would require a significant code change: all code accessing the procListxxx? would need to do like:

for p in procListxxx?:

The desired fallout is that all PROC rules would match and iterate over *all* procs by-name, not just the last one seen.

Change History

Changed 3 years ago by mtaylor

  • version set to eddie-0.35
Note: See TracTickets for help on using tickets.