summaryrefslogtreecommitdiff
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.osdl.org>2003-11-24 18:46:32 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2003-11-24 18:46:32 -0800
commite1d592cd2b6493cb25a7fe0bb7cdbb3b01266dbc (patch)
treef29d49a7b5ab450034392ae432b983ae91101b55 /kernel/fork.c
parent84e35d552b2da4f188c58ce6202a68a4994f90a8 (diff)
Fix error return on concurrent fork() with threaded exit()
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 1834f99dd054..80c037b5ac3d 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1014,6 +1014,7 @@ struct task_struct *copy_process(unsigned long clone_flags,
if (current->signal->group_exit) {
spin_unlock(&current->sighand->siglock);
write_unlock_irq(&tasklist_lock);
+ retval = -EAGAIN;
goto bad_fork_cleanup_namespace;
}
p->tgid = current->tgid;