Searched refs:all_pids (Results 1 – 3 of 3) sorted by relevance
35 pid_t *all_pids = (pid_t *)malloc(all_pids_size); in get_pid_for_process_name() local40 proc_listpids(PROC_ALL_PIDS, 0, all_pids, all_pids_size) / sizeof(pid_t); in get_pid_for_process_name()47 int pidpath_len = proc_pidpath(all_pids[i], pidpath, sizeof(pidpath)); in get_pid_for_process_name()54 if (all_pids[i] > highest_pid) in get_pid_for_process_name()55 highest_pid = all_pids[i]; in get_pid_for_process_name()58 free(all_pids); in get_pid_for_process_name()
92 all_pids = []95 all_pids.extend([p.pid for p in instance._active_consumers])96 return all_pids
53 all_pids = [int(pid) for pid in os.listdir('/proc') if pid.isdigit()]54 for pid in all_pids: