next if scalar(%pids) and not $pids{$proc->pid};