Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25711
b: refs/heads/master
c: c06511d
h: refs/heads/master
i:
  25709: 1fe2e8a
  25707: a1106c5
  25703: b639940
  25695: 71f01d0
v: v3
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Apr 14, 2006
1 parent 98d795c commit 0ee72fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 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: 0e5e24bf64b755a034d8294303bc61d8f40ebeaf
refs/heads/master: c06511d12d720b23c8dffff23004f0a888698f20
27 changes: 0 additions & 27 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,7 @@ static int de_thread(struct task_struct *tsk)
* and to assume its PID:
*/
if (!thread_group_leader(current)) {
struct task_struct *parent;
struct dentry *proc_dentry1, *proc_dentry2;
unsigned long ptrace;

/*
* Wait for the thread group leader to be a zombie.
Expand Down Expand Up @@ -704,22 +702,6 @@ static int de_thread(struct task_struct *tsk)
* two threads with a switched PID, and release
* the former thread group leader:
*/
ptrace = leader->ptrace;
parent = leader->parent;
if (unlikely(ptrace) && unlikely(parent == current)) {
/*
* Joker was ptracing his own group leader,
* and now he wants to be his own parent!
* We can't have that.
*/
ptrace = 0;
}

ptrace_unlink(current);
ptrace_unlink(leader);
remove_parent(current);
remove_parent(leader);


/* Become a process group leader with the old leader's pid.
* Note: The old leader also uses thispid until release_task
Expand All @@ -732,8 +714,6 @@ static int de_thread(struct task_struct *tsk)
attach_pid(current, PIDTYPE_SID, current->signal->session);
list_add_tail(&current->tasks, &init_task.tasks);

current->parent = current->real_parent = leader->real_parent;
leader->parent = leader->real_parent = child_reaper;
current->group_leader = current;
leader->group_leader = current;

Expand All @@ -742,13 +722,6 @@ static int de_thread(struct task_struct *tsk)
detach_pid(leader, PIDTYPE_SID);
list_del_init(&leader->tasks);

add_parent(current);
add_parent(leader);
if (ptrace) {
current->ptrace = ptrace;
__ptrace_link(current, parent);
}

current->exit_signal = SIGCHLD;

BUG_ON(leader->exit_state != EXIT_ZOMBIE);
Expand Down

0 comments on commit 0ee72fd

Please sign in to comment.