Commit e1d592cd authored by Linus Torvalds's avatar Linus Torvalds

Fix error return on concurrent fork() with threaded exit()

parent 84e35d55
...@@ -1014,6 +1014,7 @@ struct task_struct *copy_process(unsigned long clone_flags, ...@@ -1014,6 +1014,7 @@ struct task_struct *copy_process(unsigned long clone_flags,
if (current->signal->group_exit) { if (current->signal->group_exit) {
spin_unlock(&current->sighand->siglock); spin_unlock(&current->sighand->siglock);
write_unlock_irq(&tasklist_lock); write_unlock_irq(&tasklist_lock);
retval = -EAGAIN;
goto bad_fork_cleanup_namespace; goto bad_fork_cleanup_namespace;
} }
p->tgid = current->tgid; p->tgid = current->tgid;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment