Lines Matching defs:pid
72 static pid_t pid = -1;
75 if (pid > 0) {
76 kill(pid, SIGTERM);
239 pid_t pid;
242 pid = fork();
243 if (pid < 0) {
247 if (pid == 0) {
274 waitpid(pid, &wstatus, 0);
322 pid = fork();
323 if (pid == -1) {
326 if (pid == 0) {
360 snprintf(buf, sizeof(buf), "/proc/%u/maps", pid);
379 snprintf(buf, sizeof(buf), "/proc/%u/smaps", pid);
435 snprintf(buf, sizeof(buf), "/proc/%u/smaps_rollup", pid);
471 snprintf(buf, sizeof(buf), "/proc/%u/statm", pid);