Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24547
b: refs/heads/master
c: 8fafabd
h: refs/heads/master
i:
  24545: 25f88df
  24543: e7ac259
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Mar 29, 2006
1 parent 97ecd59 commit d058693
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d799f03597cabc6112acb518fc8ab4487aa4f953
refs/heads/master: 8fafabd86f1b75ed3cc6a6ffbe6c3e53e3d8457d
4 changes: 2 additions & 2 deletions trunk/arch/mips/kernel/irixsig.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ asmlinkage int irix_waitsys(int type, int pid,
/* move to end of parent's list to avoid starvation */
write_lock_irq(&tasklist_lock);
remove_parent(p);
add_parent(p, p->parent);
add_parent(p);
write_unlock_irq(&tasklist_lock);
retval = ru ? getrusage(p, RUSAGE_BOTH, ru) : 0;
if (retval)
Expand Down Expand Up @@ -643,7 +643,7 @@ asmlinkage int irix_waitsys(int type, int pid,
write_lock_irq(&tasklist_lock);
remove_parent(p);
p->parent = p->real_parent;
add_parent(p, p->parent);
add_parent(p);
do_notify_parent(p, SIGCHLD);
write_unlock_irq(&tasklist_lock);
} else
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,8 @@ static int de_thread(struct task_struct *tsk)
current->group_leader = current;
leader->group_leader = leader;

add_parent(current, current->parent);
add_parent(leader, leader->parent);
add_parent(current);
add_parent(leader);
if (ptrace) {
current->ptrace = ptrace;
__ptrace_link(current, parent);
Expand Down
4 changes: 2 additions & 2 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@ extern void wait_task_inactive(task_t * p);
#endif

#define remove_parent(p) list_del_init(&(p)->sibling)
#define add_parent(p, parent) list_add_tail(&(p)->sibling,&(parent)->children)
#define add_parent(p) list_add_tail(&(p)->sibling,&(p)->parent->children)

#define REMOVE_LINKS(p) do { \
if (thread_group_leader(p)) \
Expand All @@ -1195,7 +1195,7 @@ extern void wait_task_inactive(task_t * p);
#define SET_LINKS(p) do { \
if (thread_group_leader(p)) \
list_add_tail(&(p)->tasks,&init_task.tasks); \
add_parent(p, (p)->parent); \
add_parent(p); \
} while (0)

#define next_task(p) list_entry((p)->tasks.next, struct task_struct, tasks)
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ static int wait_task_stopped(task_t *p, int delayed_group_leader, int noreap,

/* move to end of parent's list to avoid starvation */
remove_parent(p);
add_parent(p, p->parent);
add_parent(p);

write_unlock_irq(&tasklist_lock);

Expand Down

0 comments on commit d058693

Please sign in to comment.