Lines Matching refs:cpid
116 static void mark_orphan(struct orphan_pgrp *orphans, pid_t cpid);
190 pid_t cpid; in main() local
547 cpid = in main()
550 if (cpid != -1) in main()
552 if ((cpid != -1 || sequential) && starts > 0) in main()
719 pid_t cpid; in check_pids() local
737 cpid = wait(&stat_loc); in check_pids()
744 if (cpid < 0) { in check_pids()
754 } else if (cpid > 0) { in check_pids()
762 cpid, w); in check_pids()
771 cpid, w); in check_pids()
786 if (running[i].pgrp == cpid) { in check_pids()
876 if (zoo_clear(zoofile, cpid)) { in check_pids()
883 if ((kill(-cpid, 0) == 0) || (errno == EPERM)) { in check_pids()
885 (zoofile, cpid, "panorphan", in check_pids()
891 mark_orphan(orphans, cpid); in check_pids()
893 kill(-cpid, SIGTERM); in check_pids()
908 int cpid; in run_child() local
962 if ((cpid = fork()) == -1) { in run_child()
973 } else if (cpid == 0) { in run_child()
1083 waitpid(cpid, &status, 0); in run_child()
1134 active->pgrp = cpid; in run_child()
1137 if (zoo_mark_cmdline(zoofile, cpid, colle->name, colle->cmdline)) { in run_child()
1144 colle->name, cpid, ctime(&active->mystime)); in run_child()
1156 return cpid; in run_child()
1336 static void mark_orphan(struct orphan_pgrp *orphans, pid_t cpid) in mark_orphan() argument
1352 orph->pgrp = cpid; in mark_orphan()