Lines Matching refs:father

526 static struct task_struct *find_child_reaper(struct task_struct *father,  in find_child_reaper()  argument
531 struct pid_namespace *pid_ns = task_active_pid_ns(father); in find_child_reaper()
535 if (likely(reaper != father)) in find_child_reaper()
538 reaper = find_alive_thread(father); in find_child_reaper()
554 return father; in find_child_reaper()
564 static struct task_struct *find_new_reaper(struct task_struct *father, in find_new_reaper() argument
569 thread = find_alive_thread(father); in find_new_reaper()
573 if (father->signal->has_child_subreaper) { in find_new_reaper()
574 unsigned int ns_level = task_pid(father)->level; in find_new_reaper()
583 for (reaper = father->real_parent; in find_new_reaper()
602 static void reparent_leader(struct task_struct *father, struct task_struct *p, in reparent_leader() argument
620 kill_orphaned_pgrp(p, father); in reparent_leader()
631 static void forget_original_parent(struct task_struct *father, in forget_original_parent() argument
636 if (unlikely(!list_empty(&father->ptraced))) in forget_original_parent()
637 exit_ptrace(father, dead); in forget_original_parent()
640 reaper = find_child_reaper(father, dead); in forget_original_parent()
641 if (list_empty(&father->children)) in forget_original_parent()
644 reaper = find_new_reaper(father, reaper); in forget_original_parent()
645 list_for_each_entry(p, &father->children, sibling) { in forget_original_parent()
648 BUG_ON((!t->ptrace) != (rcu_access_pointer(t->parent) == father)); in forget_original_parent()
660 if (!same_thread_group(reaper, father)) in forget_original_parent()
661 reparent_leader(father, p, dead); in forget_original_parent()
663 list_splice_tail_init(&father->children, &reaper->children); in forget_original_parent()