I'm not sure if this would be considered a bug, but I
don't think it is appropriate for getpids to return
duplicates of PIDs. What I am saying is that when there
are timers for a given program, the timer shares the
PID (in @ps, it shows up surrounded in parentheses),
and when getpids is used for that program, the timer
appears in the PIDs list with the same PID as the
program. So assuming @ps displayed the following:
PID Next Run KInst %CPU Prog# Player
109 Due 2s 0 0.0 #9 Christof SLEEPING
( 107) 14s 2m 1 0.0 #59 Johnathan TIMER._MUTEX.WAKE
106 -- 2m 0 0.0 #59 Johnathan EVENT_WAITFOR
107 -- 2m 1 0.0 #59 Johnathan EVENT_WAITFOR
and I were to attempt '#59 getpids', I would receive an
array containing 107, 106, and 107. Clearly, since the
timer is not its own program, it should not appear in
the array, or if it needs to, there should be some way
to distinguish it from the program's actual PID (such
as being negative, perhaps?).
- Kalzarius