[PATCH] set EXIT_DEAD state in do_exit(), not in schedule()