Lines Matching defs:child
173 static void pgrp_add(struct pgrp * pgrp, proc_t parent, proc_t child);
974 * child The child process to insert
978 * Notes: Insert a child process into the parents process group, assign
979 * the child the parent process pointer and PPID of the parent,
981 * initialize its own child list, place it in the allproc list,
986 pinsertchild(proc_t parent, proc_t child)
990 LIST_INIT(&child->p_children);
991 TAILQ_INIT(&child->p_evlist);
992 child->p_pptr = parent;
993 child->p_ppid = parent->p_pid;
996 pgrp_add(pg, parent, child);
1001 LIST_INSERT_HEAD(&parent->p_children, child, p_sibling);
1003 LIST_INSERT_HEAD(&allproc, child, p_list);
1005 child->p_listflag &= ~P_LIST_INCREATE;
2318 pgrp_add(struct pgrp * pgrp, struct proc * parent, struct proc * child)
2321 child->p_pgrp = pgrp;
2322 child->p_pgrpid = pgrp->pg_id;
2323 child->p_listflag |= P_LIST_INPGRP;
2341 LIST_INSERT_AFTER(parent, child, p_pglist);
2343 LIST_INSERT_HEAD(&pgrp->pg_members, child, p_pglist);