Lines Matching refs:pid
70 static pid_t pid = -1;
73 if (pid > 0) {
74 kill(pid, SIGTERM);
228 pid_t pid;
231 pid = fork();
232 if (pid < 0) {
236 if (pid == 0) {
250 waitpid(pid, &wstatus, 0);
282 pid = fork();
283 if (pid == -1) {
286 if (pid == 0) {
320 snprintf(buf, sizeof(buf), "/proc/%u/maps", pid);
339 snprintf(buf, sizeof(buf), "/proc/%u/smaps", pid);
395 snprintf(buf, sizeof(buf), "/proc/%u/smaps_rollup", pid);
431 snprintf(buf, sizeof(buf), "/proc/%u/statm", pid);