Lines Matching defs:child

333 	WaitForChild(pid_t child, uint32 flags)
335 fChild(child),
343 out.Print("team wait for child, child: %" B_PRId32 ", "
376 out.Print("team wait for child done, team: %" B_PRId32 ", "
381 out.Print("team wait for child failed, error: "
646 // The locking order is parent -> child. Since the parent can change as long
728 // The locking order is process group -> child. Since the process group can
1276 /*! Inserts team \a team into the child list of team \a parent.
1281 \param team The team to be inserted into \a parent's child list.
1294 /*! Removes team \a team from the child list of team \a parent.
1299 \param team The team to be removed from \a parent's child list.
1304 Team* child;
1307 for (child = parent->children; child != NULL;
1308 child = child->siblings_next) {
1309 if (child == team) {
1311 parent->children = child->siblings_next;
1313 last->siblings_next = child->siblings_next;
1318 last = child;
2329 for (Team* child = parent->children; child != NULL;
2330 child = child->siblings_next) {
2331 TeamLocker childLocker(child);
2332 if (child->group_id == groupID)
2386 \param team The team whose dead, stopped, and continued child lists shall be
2492 wait_for_child(pid_t child, uint32 flags, siginfo_t& _info,
2501 TRACE(("wait_for_child(child = %" B_PRId32 ", flags = %" B_PRId32 ")\n",
2502 child, flags));
2504 T(WaitForChild(child, flags));
2511 pid_t originalChild = child;
2520 // A 0 child argument means to wait for all children in the process
2522 child = originalChild == 0 ? -team->group_id : originalChild;
2525 job_control_entry* entry = get_job_control_entry(team, child, flags);
2533 if (child == -1) {
2535 } else if (child < -1) {
2536 childrenExist = has_children_in_group(team, -child);
2537 } else if (child != team->id) {
2538 if (Team* childTeam = Team::Get(child)) {
2546 // there is no child we could wait for
2559 // The child is dead. Reap its death entry.
2564 // The child is well. Reset its job control state.
2652 // If SIGCHLD is blocked, we shall clear pending SIGCHLDs, if no other child
2659 if (get_job_control_entry(team, child, flags) == NULL)
2833 Team* child = team->children;
2834 for (; child != NULL; child = child->siblings_next) {
2835 TeamLocker childLocker(child);
2845 kernelTime += child->dead_threads_kernel_time;
2846 userTime += child->dead_threads_user_time;
2959 /*! Returns a death entry of a child team specified by ID (if any).
2963 \param child The ID of the child for whose death entry to lock. Must be > 0.
2970 team_get_death_entry(Team* team, thread_id child, bool* _deleteEntry)
2972 if (child <= 0)
2976 child);
3160 while (Team* child = team->children) {
3161 // remove the child from the current team and add it to the kernel team
3162 TeamLocker childLocker(child);
3164 remove_team_from_parent(team, child);
3165 insert_team_into_parent(sKernelTeam, child);
3177 // child's process group not being an orphan and, if so, schedule a
3180 ProcessGroup* childGroup = child->group;
4044 _user_wait_for_child(thread_id child, uint32 flags, siginfo_t* userInfo,
4054 pid_t foundChild = wait_for_child(child, flags, info, usage_info);
4209 // Calling team != target team. The target team must be a child of
4217 // The call is also supposed to fail on a child, when the child has