]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] CLONE_DETACHED fix
authorIngo Molnar <mingo@elte.hu>
Mon, 9 Sep 2002 01:10:19 +0000 (18:10 -0700)
committerIngo Molnar <mingo@elte.hu>
Mon, 9 Sep 2002 01:10:19 +0000 (18:10 -0700)
This avoids a crash that can be caused by a CLONE_DETACHED thread.

kernel/exit.c

index 94c935ae59a81a781eb76fa667e67fa46a3f1914..33078e550697eeac9262b08cf7deee21e0917ae1 100644 (file)
@@ -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))