[PATCH] set EXIT_DEAD state in do_exit(), not in schedule()
[safe/jmp/linux-2.6] / kernel / exit.c
index 4a28085..3d759c9 100644 (file)
@@ -957,6 +957,7 @@ fastcall NORET_TYPE void do_exit(long code)
        preempt_disable();
        BUG_ON(tsk->flags & PF_DEAD);
        tsk->flags |= PF_DEAD;
+       tsk->state = EXIT_DEAD;
 
        schedule();
        BUG();