Ticket #66 (new defect)
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
Note: See
TracTickets for help on using
tickets.
