[patch] CLONE_DETACHED fix, BK-curr

From: Ingo Molnar (mingo@elte.hu)
Date: Mon Sep 09 2002 - 07:11:09 EST


the attached patch avoids a crash that can be caused by a CLONE_DETACHED
thread.

        Ingo

--- linux/kernel/exit.c.orig Mon Sep 9 14:06:05 2002
+++ linux/kernel/exit.c Mon Sep 9 14:06:25 2002
@@ -532,7 +532,7 @@
          *
          */
         
- 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))

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Sep 15 2002 - 22:00:16 EST