Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20337
b: refs/heads/master
c: 3f17da6
h: refs/heads/master
i:
  20335: 4b17c9d
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Feb 15, 2006
1 parent 103909e commit dd663b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 7775aa7690c26b3c5606090a43533a7a7429eb91
refs/heads/master: 3f17da699431ec48540beabc55c54d4b5e66c8e7
5 changes: 2 additions & 3 deletions trunk/kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -1123,8 +1123,8 @@ static task_t *copy_process(unsigned long clone_flags,
p->real_parent = current;
p->parent = p->real_parent;

spin_lock(&current->sighand->siglock);
if (clone_flags & CLONE_THREAD) {
spin_lock(&current->sighand->siglock);
/*
* Important: if an exit-all has been started then
* do not create this new thread - the whole thread
Expand Down Expand Up @@ -1162,8 +1162,6 @@ static task_t *copy_process(unsigned long clone_flags,
*/
p->it_prof_expires = jiffies_to_cputime(1);
}

spin_unlock(&current->sighand->siglock);
}

/*
Expand All @@ -1189,6 +1187,7 @@ static task_t *copy_process(unsigned long clone_flags,

nr_threads++;
total_forks++;
spin_unlock(&current->sighand->siglock);
write_unlock_irq(&tasklist_lock);
proc_fork_connector(p);
return p;
Expand Down

0 comments on commit dd663b5

Please sign in to comment.