Lines Matching refs:proc
110 procps_status_t *proc; in pgrep_main() local
159 proc = NULL; in pgrep_main()
160 while ((proc = procps_scan(proc, scan_mask)) != NULL) { in pgrep_main()
164 if (proc->pid == pid) in pgrep_main()
169 if (ppid2match >= 0 && ppid2match != proc->ppid) in pgrep_main()
171 if (sid2match >= 0 && sid2match != proc->sid) in pgrep_main()
176 cmd = proc->argv0; in pgrep_main()
178 cmd = proc->comm; in pgrep_main()
180 int i = proc->argv_len; in pgrep_main()
201 if (ppid2match >= 0 && ppid2match != proc->ppid) in pgrep_main()
203 if (sid2match >= 0 && sid2match != proc->sid) in pgrep_main()
211 if (!match && cmd != proc->comm) { in pgrep_main()
214 cmd = proc->comm; in pgrep_main()
226 matched_pid = proc->pid; in pgrep_main()
234 act(proc->pid, cmd, signo); in pgrep_main()