Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30262
b: refs/heads/master
c: 2ceb869
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Jun 26, 2006
1 parent c2624bd commit 0ab2c0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 42c3e03ef6b298813557cdb997bd6db619cd65a2
refs/heads/master: 2ceb8693ef63ae3d154ce1a05d275f2bb20a5e4c
3 changes: 1 addition & 2 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,15 +707,14 @@ static int de_thread(struct task_struct *tsk)
attach_pid(current, PIDTYPE_PID, current->pid);
attach_pid(current, PIDTYPE_PGID, current->signal->pgrp);
attach_pid(current, PIDTYPE_SID, current->signal->session);
list_add_tail_rcu(&current->tasks, &init_task.tasks);
list_replace_rcu(&leader->tasks, &current->tasks);

current->group_leader = current;
leader->group_leader = current;

/* Reduce leader to a thread */
detach_pid(leader, PIDTYPE_PGID);
detach_pid(leader, PIDTYPE_SID);
list_del_init(&leader->tasks);

current->exit_signal = SIGCHLD;

Expand Down

0 comments on commit 0ab2c0e

Please sign in to comment.