Lines Matching defs:child
169 static void pgrp_add(struct pgrp * pgrp, proc_t parent, proc_t child);
918 * child The child process to insert
922 * Notes: Insert a child process into the parents process group, assign
923 * the child the parent process pointer and PPID of the parent,
925 * initialize its own child list, place it in the allproc list,
930 pinsertchild(proc_t parent, proc_t child)
934 LIST_INIT(&child->p_children);
935 TAILQ_INIT(&child->p_evlist);
936 child->p_pptr = parent;
937 child->p_ppid = parent->p_pid;
940 pgrp_add(pg, parent, child);
945 LIST_INSERT_HEAD(&parent->p_children, child, p_sibling);
947 LIST_INSERT_HEAD(&allproc, child, p_list);
949 child->p_listflag &= ~P_LIST_INCREATE;
2133 pgrp_add(struct pgrp * pgrp, struct proc * parent, struct proc * child)
2136 child->p_pgrp = pgrp;
2137 child->p_pgrpid = pgrp->pg_id;
2138 child->p_listflag |= P_LIST_INPGRP;
2156 LIST_INSERT_AFTER(parent, child, p_pglist);
2158 LIST_INSERT_HEAD(&pgrp->pg_members, child, p_pglist);