|
@@ -1123,8 +1123,8 @@ static task_t *copy_process(unsigned long clone_flags,
|
|
|
p->real_parent = current;
|
|
|
p->parent = p->real_parent;
|
|
|
|
|
|
+ spin_lock(¤t->sighand->siglock);
|
|
|
if (clone_flags & CLONE_THREAD) {
|
|
|
- spin_lock(¤t->sighand->siglock);
|
|
|
/*
|
|
|
* Important: if an exit-all has been started then
|
|
|
* do not create this new thread - the whole thread
|
|
@@ -1162,8 +1162,6 @@ static task_t *copy_process(unsigned long clone_flags,
|
|
|
*/
|
|
|
p->it_prof_expires = jiffies_to_cputime(1);
|
|
|
}
|
|
|
-
|
|
|
- spin_unlock(¤t->sighand->siglock);
|
|
|
}
|
|
|
|
|
|
/*
|
|
@@ -1189,6 +1187,7 @@ static task_t *copy_process(unsigned long clone_flags,
|
|
|
|
|
|
nr_threads++;
|
|
|
total_forks++;
|
|
|
+ spin_unlock(¤t->sighand->siglock);
|
|
|
write_unlock_irq(&tasklist_lock);
|
|
|
proc_fork_connector(p);
|
|
|
return p;
|