summaryrefslogtreecommitdiff
path: root/kernel/exit.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2002-09-08 18:10:19 -0700
committerIngo Molnar <mingo@elte.hu>2002-09-08 18:10:19 -0700
commitb32c3a0cc6c27e43c1b6dbbc840bbd569c5f84cc (patch)
tree9c904ab8054b3f5e9c56ee8b1a8aae82df9cf3ab /kernel/exit.c
parent095891776b9dcf894ab8320ae437238cc7c94849 (diff)
[PATCH] CLONE_DETACHED fix
This avoids a crash that can be caused by a CLONE_DETACHED thread.
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 94c935ae59a8..33078e550697 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -532,7 +532,7 @@ static void exit_notify(void)
*
*/
- if(current->exit_signal != SIGCHLD &&
+ if (current->exit_signal != SIGCHLD && current->exit_signal != -1 &&
( current->parent_exec_id != t->self_exec_id ||
current->self_exec_id != current->parent_exec_id)
&& !capable(CAP_KILL))