Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55920
b: refs/heads/master
c: 0800d30
h: refs/heads/master
v: v3
  • Loading branch information
Sukadev Bhattiprolu authored and Linus Torvalds committed May 11, 2007
1 parent 6c8a026 commit c19125a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 85868995d9d82de5b0de38d695559daddffef893
refs/heads/master: 0800d30832ddecf2d9dc40068fed9df95930a8f1
9 changes: 3 additions & 6 deletions trunk/kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -1249,14 +1249,11 @@ static struct task_struct *copy_process(unsigned long clone_flags,
__ptrace_link(p, current->parent);

if (thread_group_leader(p)) {
pid_t pgid = process_group(current);
pid_t sid = process_session(current);

p->signal->tty = current->signal->tty;
p->signal->pgrp = pgid;
p->signal->pgrp = process_group(current);
set_signal_session(p->signal, process_session(current));
attach_pid(p, PIDTYPE_PGID, find_pid(pgid));
attach_pid(p, PIDTYPE_SID, find_pid(sid));
attach_pid(p, PIDTYPE_PGID, task_pgrp(current));
attach_pid(p, PIDTYPE_SID, task_session(current));

list_add_tail_rcu(&p->tasks, &init_task.tasks);
__get_cpu_var(process_counts)++;
Expand Down

0 comments on commit c19125a

Please sign in to comment.