• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/kern/

Lines Matching defs:parent

145 static int reap_child_locked(proc_t parent, proc_t child, int deadparent, int locked, int droplock);
201 * to zombie, and unlink proc from allproc and parent's lists. Save exit
329 * If parent is waiting for us to exit or exec,
330 * P_LPPWAIT is set; we will wakeup the parent below.
526 panic("parent child linkage broken");
701 * Notify parent that we're gone.
708 * If the parent is ignoring SIGCHLD, then POSIX requires
709 * us to not add the resource usage to the parent process -
716 * Add child resource usage to parent before giving
747 * no one except parent (reaping ) can look at this.
748 * The write is to an int and is coherent. Also parent is
759 /* and now wakeup the parent */
764 /* should be fine as parent proc would be initproc */
767 * no one except parent (reaping ) can look at this.
768 * The write is to an int and is coherent. Also parent is
812 * parent, else recover all resources remaining associated
815 * Parameters: proc_t parent Parent of process being reaped
823 reap_child_locked(proc_t parent, proc_t child, int deadparent, int locked, int droplock)
825 proc_t trace_parent; /* Traced parent process, if tracing */
829 * we need to give it back to the old parent.
867 proc_lock(parent);
870 * If the parent is ignoring SIGCHLD, then POSIX requires
871 * us to not add the resource usage to the parent process -
876 if (!(parent->p_flag & P_NOCLDWAIT))
878 ruadd(&parent->p_stats->p_cru, child->p_ru);
879 proc_unlock(parent);
917 parent->p_childrencnt--;
919 /* If there are no more children wakeup parent */
920 if ((deadparent != 0) && (LIST_EMPTY(&parent->p_children)))
921 wakeup((caddr_t)parent); /* with list lock held */
1419 * make process 'parent' the new parent of process 'child'.
1422 proc_reparentlocked(proc_t child, proc_t parent, int cansignal, int locked)
1426 if (child->p_pptr == parent)
1435 panic("proc_reparent: process %x does not have a parent\n", (unsigned int)child);
1448 LIST_INSERT_HEAD(&parent->p_children, child, p_sibling);
1449 parent->p_childrencnt++;
1450 child->p_pptr = parent;
1451 child->p_ppid = parent->p_pid;
1455 if ((cansignal != 0) && (initproc == parent) && (child->p_stat == SZOMB))
1463 * that it doesn't have a parent, and that it won't be
1483 * out of our parent's child chain.
1501 * to zombie, and unlink proc from allproc and parent's lists. Save exit
1532 * This happens when a parent exits/killed and vfork is in progress
1543 * parent of a vfork child has already called exit() and the
1704 panic("parent child linkage broken");
1841 * Notify parent that we're gone.
1860 * no one except parent (reaping ) can look at this.
1861 * The write is to an int and is coherent. Also parent is
1868 /* and now wakeup the parent */